mirror of https://github.com/django/django.git
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:
parent
c6e4b232c2
commit
02ebeec0dc
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue