From 02ebeec0dc719bdbbe2ecfa1fe6655a6289fc931 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 29 Aug 2005 21:58:21 +0000 Subject: [PATCH] Updated docs/templates.txt to add {% ifequal %} git-svn-id: http://code.djangoproject.com/svn/django/trunk@576 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/templates.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 {{ date|date:"j" }} {% 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.