I am using twig.js for templating. I have html div which displays 3 items from the items list.
<div class="item-container">
{% set i = 0 %}
{% for i in 0..items | length %}
<ul>
<li> {{ items[i].name }} </li>
<li> {{ items[i + 1].name }} </li>
<li> {{ items[i + 2].name }} </li>
<ul>
{% set i = i + 3 %}
{% endfor %}
</div>
First iteration loop works fine, but $i will not be incremented using {% set i = i + 3 %}.
Can anyone tell me how to do this ?
batchfilter as an alternative.