I do not understand whether it is possible to distribute an item in nunchucks through a fot-like loop in a jade?

jade exampel
- for(i=0;i<10;i ++)
    Item

 I think it is understandable, but how to do it in nunchucks? if of course it is possible.

1 Answers 1

So?
{% for array_item in array%}
  {{array_item.field}}
{% endfor%}
  • and how many iterations it wakes is not clear ((( – Eager57 Oct 25 '17 at 09:47
  • Inside the loop is available the variable {{loop.length}} – Enraged3 Oct 25 '17 at 19:55
  • The answer to my question was
    {% for i in range (0, 10) -%}
    item
    {% - endfor%}
    – Eager57 Nov 29 '17 at 10:44