diff options
| -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. |
