Answer the question
In order to leave comments, you need to log in
How to do multiple loops in a PUG/JADE mixin?
Friends, tell me how you can make several cycles in a mixin, despite the fact that when adding a mixin to a page, we list the necessary names in the ad: here is an example
mixin A (...tags, ...styles)
.content
.style
each style in styles
a(href='#').style__item= style
.tags
each tag in tags
a(href='#').tag= tag
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question