Changeset 4053
- Timestamp:
- 11/07/06 17:42:27 (2 years ago)
- Files:
-
- django/trunk/docs/templates.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r4052 r4053 474 474 displayed by the ``{{ athlete_list|length }}`` variable. 475 475 476 As you can see, the ``if`` tag can take an option ``{% else %}`` clause that476 As you can see, the ``if`` tag can take an optional ``{% else %}`` clause that 477 477 will be displayed if the test fails. 478 478 … … 538 538 <a href="{{ date|date:"M/d"|lower }}/">{{ date|date:"j" }}</a> 539 539 {% endfor %} 540 540 541 541 2. **New in Django development version.** If given a variable, check whether that 542 542 variable has changed. For example, the following shows the date every time it 543 543 changes, but only shows the hour if both the hour and the date has changed:: 544 544 545 545 {% for date in days %} 546 546 {% ifchanged date.date %} {{ date.date }} {% endifchanged %}
