- Added tests, tags and filters
[haanga.git] / tests / assert_templates / regroup.tpl
bloba28203422c76e4f77ef2f1e973bc16284f6c123c
1 {% regroup users|dictsort:"age" 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 %}