for
Renders an expression for each item in an array.
Each for loop has an associated forloop object that contains information about the loop.
{{#for item in array}}
expression
{{/for}}
array
The array to iterate over.
item
The current item in the array.
expression
The expression to render for each iteration.
Example
{{#for tag in product.tags}}
{{forloop.index}}: {{tag}}
{{/for}}
Was this article helpful to you?