filmov
tv
Pug (Jade) Tutorial #6 - For/Each Loop - Iterate over Arrays and Objects
Показать описание
By using the each/for loop in Pug, you are able to easily iterate over an iterable object such as an array or object and then render HTML accordingly, having access to both the key and value of the respective items. In Pug, the each and the for loop do the same thing except they are just aliases for each other, either one will work.
In this video I take you through the each loop, with examples of an array and also an object. There is also the 'else' keyword which runs whenever there are no items to iterate over.
For your reference, check this out:
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
In this video I take you through the each loop, with examples of an array and also an object. There is also the 'else' keyword which runs whenever there are no items to iterate over.
For your reference, check this out:
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Pug (Jade) Tutorial #6 - For/Each Loop - Iterate over Arrays and Objects
Pug (Jade) Tutorial #3 - IDs and Classes
Jade Pug Tutorial
Jade / Pug Tips in 90 Seconds - #6 Gulp Watch
Pug (Jade) Tutorial # 7 - Conditionals | If/Else Statements
Jade / Pug Tips in 90 Seconds - #7 Syntax Overview
Jade / Pug Tips in 90 Seconds - #15 Navigation Module, Part II
Jade / Pug Tips in 90 Seconds - #3 Workflow Setup - npm and Gulp
Pug (Jade) Tutorial #5 - Using CSS (Stylesheets)
Jade / Pug Tips in 90 Seconds - #5 The Gulp Task
Jade / Pug Tips in 90 Seconds - #10 Iteration
Pug (Jade) Tutorial #2 - The Basics (Doctypes + HTML Tags)
Jade / Pug Tips in 90 Seconds - #2 Getting Started
Jade / Pug Tips in 90 Seconds - #13 Mixins
Lesson 6 - Including files
Pug (Jade) Tutorial #9 - Includes Statement | Including other Pug files
Jade / Pug Tips in 90 Seconds - #8 Syntax Part II
Jade / Pug Tips in 90 Seconds - #14 Navigation Module, Part I
Origami best for pop it
Jade / Pug Tips in 90 Seconds - #1 Series Intro
Pug Template Engine - Full Tutorial for Beginners
Pug (Jade) Tutorial #10 - Mixins | Reusable blocks of code
Jade/Pug Tips in 90 Seconds - #9 Variables
Jade / Pug Tips in 90 Seconds - #12 Append & Prepend
Комментарии