- Added tests, tags and filters
[haanga.git] / tests / assert_templates / ifchanged.tpl
blob4db00dcaa59fb39332451d7e1b7a997894aafebb
1 {% dictsort users "age" as sorted_users %}
2 {% for user in sorted_users %}
3     {% ifchanged %}Users with {{user.age}} years{% endifchanged %}
4     {{ user.name }}
5 {% endfor %}
7 {% for user in sorted_users %}
8     {% ifchanged user.age user.foo %}Users with {{user.age}} years{% else %}continue{% endifchanged %}
9     {{ user.name }}
10 {% endfor %}