Use Pug For Loops to Generate Form Markup

InstructorJhey Tompkins

Share this video with your friends

Send Tweet

Use the HTML preprocessor Pug to generate markup for a form. Here we generate a set of labels and checkboxes. We link these using ES6 Template Literals with a loop index.