Ticket #6993: templates.diff

File templates.diff, 577 bytes (added by Ionut Ciocirlan <ionut.ciocirlan@…>, 16 years ago)
  • docs/templates.txt

     
    819819
    8208202. If given a variable, check whether that variable has changed. For
    821821   example, the following shows the date every time it changes, but
    822    only shows the hour if both the hour and the date has changed::
     822   only shows the hour if both the hour and the date have changed::
    823823
    824824        {% for date in days %}
    825825            {% ifchanged date.date %} {{ date.date }} {% endifchanged %}
Back to Top