- Added forloop.* (all variables)
[haanga.git] / tests / assert_templates / regroup.tpl
blob86c2fd80e45cccceb640422a0c26e5f64bd45680
1 {% regroup users by age as sorted_users %}
3 {% for user in sorted_users %}
4     {{user.grouper}}
5     {% for u in user.list %}
6         {{forloop.counter}}-{{forloop.revcounter}}-{{forloop.revcounter0}} ({{forloop.parentloop.counter}}). {{ u.name|capfirst }} ({% if forloop.first %}first{% else %}{% if forloop.last %}last{% endif %}{% endif %})
7     {% endfor %}
8 {% endfor %}