- Optimized forloop.* variables
[haanga.git] / tests / assert_templates / loop.tpl
blob6fccd64944a5022356897f78dfa93eeddb200fe6
1 {% for i in array %}
2     {{ forloop.revcounter0 }}
3 {% endfor %}
5 {% for i in array %}
6     {{ forloop.revcounter }}
7 {% endfor %}
9 {% for i in array %}{% filter trim %}
10     {% if forloop.last %} Last {{ i }}{% endif %}
12 {% endfilter %}{% endfor %}
14 {% for k,sub in array_nested %}{% filter trim %}
16     {% for arr in sub %}
17         {% for val in arr %}
18             {% if forloop.parentloop.parentloop.last %} Last {{ k }}{% endif %}
19         {% endfor %}
20     {% endfor %}
22 {% endfilter %}{% endfor %}
24 {% for k,sub in array_nested %}{% filter trim %}
26     {% for arr in sub %}
27         {% for val in arr %}
28             {% if forloop.parentloop.parentloop.first %} first {{ k }}{% endif %}
29         {% endfor %}
30     {% endfor %}
32 {% endfilter %}{% endfor %}