+ Moved variables resolution in the compiler Parser. (Temp. solution until the new...
[haanga.git] / tests / assert_templates / ifchanged.tpl
blob68a4e3c1b934481be0c87d2b3c2b6e6c206637a8
1 {% dictsort users regroup_field 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 %}