Answer the question
In order to leave comments, you need to log in
How to make a Pug Mixin?
Good day.
A small problem with this Pug mixin:
mixin workflowOption(Name, Count, text)
.workflow-option
.top
.arrows
.option-name
p= Name
.options-count
span= Count
.option-content
p.content-details Workflow-detalies
.container
.cards
.card
.image
.left
.right
p.text= text
.icons
.check
input(type="checkbox" id="option-check")
label(for="option-check")
.delete
.settings
.add-cart
.add-rule
p Add Rule
.add-compound-rule
p Add <br> Compound Rule
Answer the question
In order to leave comments, you need to log in
probably so:
- var i = 0
while i < Count
.card
- i++
.image
.left
.right
....
each elem,i in data
.card
.image
.left
.right
p.text= elem.text
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question