Django

Code

Ticket #6993: templates.diff

File templates.diff, 0.6 kB (added by Ionut Ciocirlan <ionut.ciocirlan@gmail.com>, 8 months ago)
  • docs/templates.txt

    old new  
    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 %}