Answer the question
In order to leave comments, you need to log in
Jade. Using a mixin inside a loop?
I have this mixin:
mixin LastReview(img, href, lnk, txt)
.review__item
img(src=img, alt="")
a(href=href)=lnk
p=txt
+LastReview("img/review- 1.jpg", "text.html", "Kyosho Lazer ZX-5 (blue)", "Fully assembled chassis, installed Kyosho G20 Stock motor, PERFEX KA-15 ESC, PERFEX KR-6 micro receiver, PERFEX KS servo -101BK, painted case with stickers, Perfex/Futaba KT-6 dual-channel transmitter, instructions, receiver antenna tube, cross/wheel wrench.")
And you need to list such mixins. Is it possible to somehow use them in a cycle, and it is desirable to make the content different.
Answer the question
In order to leave comments, you need to log in
Of course, what's the problem?
each good in goods
+LastReview(good.img, good.href, good.lnk, good.txt)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question