To answer my own question, discovered Jinja2 Assignments 
<http://jinja2.readthedocs.org/en/latest/templates.html#assignments>, so 
you can "roll your own" ifchanged tag.

e.g.:

{$ for baz in foo %}

    {% if baz.category != variable_watcher %}
        
        {# Do whatever when there's been a change here. #}
        {% baz.category %}
        {% set variable_watcher = baz.category %}
        
    {% else %}
        
        {# Do whatever when there's no change here. #}
        {% baz.category %}
        
    {% endif %}

{% endfor %}


HTH,
John

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to