diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-29 21:58:21 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-29 21:58:21 +0000 |
| commit | 02ebeec0dc719bdbbe2ecfa1fe6655a6289fc931 (patch) | |
| tree | b5a52e29366bfba3dd89477f6d4aa8c3c5f057e7 /docs/templates.txt | |
| parent | c6e4b232c275b2f0da5d3f88d4ca708319eead0c (diff) | |
Updated docs/templates.txt to add {% ifequal %}
git-svn-id: http://code.djangoproject.com/svn/django/trunk@576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/templates.txt')
| -rw-r--r-- | docs/templates.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index 070749eda3..2b8fd88e33 100644 --- a/docs/templates.txt +++ b/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. |
