Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 02ebeec0dc719bdbbe2ecfa1fe6655a6289fc931 1 parent c6e4b23
@adrianholovaty adrianholovaty authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 docs/templates.txt
View
13 docs/templates.txt
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.