Pug (Jade) Tutorial #6 - For/Each Loop - Iterate over Arrays and Objects
PUG (Jade) 2020. 7. 15. 12:56https://www.youtube.com/watch?v=4ciMkWOAGRY
https://pugjs.org/language/iteration.html
Iteration – Pug
Iteration Pug supports two primary methods of iteration: each and while. each Pug’s first-class iteration syntax makes it easier to iterate over arrays and objects in a template: ul each val in [1, 2, 3, 4, 5] li= val 1 2 3 4 5 You can also get the index
pugjs.org
'PUG (Jade)' 카테고리의 다른 글
Pug (Jade) Tutorial #8 - Case Statement | Switch Statement (0) | 2020.07.16 |
---|---|
Pug (Jade) Tutorial # 7 - Conditionals | If/Else Statements (0) | 2020.07.15 |
Pug (Jade) Tutorial #5 - Using CSS (Stylesheets) (0) | 2020.07.15 |
Pug (Jade) Tutorial #4 - Attributes (and Advanced Attribute Features) (0) | 2020.07.14 |
Pug (Jade) Tutorial #3 (IDs ans Classes) (0) | 2020.07.14 |