Pug (Jade) Tutorial #8 - Case Statement | Switch Statement
PUG (Jade) 2020. 7. 16. 10:20https://www.youtube.com/watch?v=DT8BJtstXrA&list=PLVvjrrRCBy2JbOPP2JXfCtADABI1QHzWg&index=8
pug -w ./ -o ./html -P
https://pugjs.org/language/case.html
Case – Pug
Case The case statement is a shorthand for JavaScript’s switch statement. It takes the following form: - var friends = 10 case friends when 0 p you have no friends when 1 p you have a friend default p you have #{friends} friends you have 10 friends Case
pugjs.org
'PUG (Jade)' 카테고리의 다른 글
Pug (Jade) Tutorial # 7 - Conditionals | If/Else Statements (0) | 2020.07.15 |
---|---|
Pug (Jade) Tutorial #6 - For/Each Loop - Iterate over Arrays and Objects (1) | 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 |