From c89bf435c21168a4a1afd24870c6457adaa9cdd9 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 16 Apr 2009 13:28:16 +0000 Subject: [PATCH] [1.0.X] Fixed #10704 -- Resurrected documentation for {% else %} clause on {% ifchanged %}, lost during docs refactor. Thanks to Tarken for the report. Merge of r10563 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10569 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/templates/builtins.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index b0022a77ff..2b93bcd642 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -330,6 +330,19 @@ The 'ifchanged' block tag is used within a loop. It has two possible uses. {% endifchanged %} {% endfor %} +The ``ifchanged`` tag can also take an optional ``{% else %}`` clause that +will be displayed if the value has not changed:: + + {% for match in matches %} +
{{ match }}
+ {% endfor %} + .. templatetag:: ifequal ifequal