Django

Code

Changeset 4053

Show
Ignore:
Timestamp:
11/07/06 17:42:27 (2 years ago)
Author:
adrian
Message:

Fixed typo in docs/templates.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates.txt

    r4052 r4053  
    474474displayed by the ``{{ athlete_list|length }}`` variable. 
    475475 
    476 As you can see, the ``if`` tag can take an option ``{% else %}`` clause that 
     476As you can see, the ``if`` tag can take an optional ``{% else %}`` clause that 
    477477will be displayed if the test fails. 
    478478 
     
    538538            <a href="{{ date|date:"M/d"|lower }}/">{{ date|date:"j" }}</a> 
    539539        {% endfor %} 
    540          
     540 
    5415412. **New in Django development version.** If given a variable, check whether that 
    542542   variable has changed. For example, the following shows the date every time it 
    543543   changes, but only shows the hour if both the hour and the date has changed:: 
    544      
     544 
    545545        {% for date in days %} 
    546546            {% ifchanged date.date %} {{ date.date }} {% endifchanged %}