batch
The batch filter breaks up an array into groups of arrays with the given number of items.
{% for row in items|batch(3, 'No item') %}
{% endfor %}
The batch filter breaks up an array into groups of arrays with the given number of items.
{% for row in items|batch(3, 'No item') %}
{% endfor %}