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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-29 21:58:21 +00:00
parent c6e4b232c2
commit 02ebeec0dc
1 changed files with 13 additions and 0 deletions

View File

@ -440,6 +440,17 @@ Built-in tag reference
<a href="{{ date|date:"M/d"|lower }}/">{{ date|date:"j" }}</a>
{% endfor %}
``ifequal``
Output the contents of the block if the two arguments equal each other.
Example::
{% ifequal user.id_ comment.user_id %}
...
{% endifequal %}
As in the {% if %} tag, an {% else %} clause is optional.
``ifnotequal``
Output the contents of the block if the two arguments do not equal each other.
@ -449,6 +460,8 @@ Built-in tag reference
...
{% endifnotequal %}
As in the {% if %} tag, an {% else %} clause is optional.
``load``
Load a custom template tag set.