Ticket #6993: templates.diff
File templates.diff, 577 bytes (added by , 17 years ago) |
---|
-
docs/templates.txt
819 819 820 820 2. If given a variable, check whether that variable has changed. For 821 821 example, the following shows the date every time it changes, but 822 only shows the hour if both the hour and the date ha schanged::822 only shows the hour if both the hour and the date have changed:: 823 823 824 824 {% for date in days %} 825 825 {% ifchanged date.date %} {{ date.date }} {% endifchanged %}