Django

Code

Changeset 576

Show
Ignore:
Timestamp:
08/29/05 16:58:21 (3 years ago)
Author:
adrian
Message:

Updated docs/templates.txt to add {% ifequal %}

Files:

Legend:

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

    r442 r576  
    441441        {% endfor %} 
    442442 
     443``ifequal`` 
     444    Output the contents of the block if the two arguments equal each other. 
     445 
     446    Example:: 
     447 
     448        {% ifequal user.id_ comment.user_id %} 
     449            ... 
     450        {% endifequal %} 
     451 
     452    As in the {% if %} tag, an {% else %} clause is optional. 
     453 
    443454``ifnotequal`` 
    444455    Output the contents of the block if the two arguments do not equal each other. 
     
    449460            ... 
    450461        {% endifnotequal %} 
     462 
     463    As in the {% if %} tag, an {% else %} clause is optional. 
    451464 
    452465``load``