]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Removed outdated condition section on Django 472/head
authorDaniel Greenfeld <danny@eventbrite.com>
Thu, 6 Aug 2015 15:35:51 +0000 (08:35 -0700)
committerDaniel Greenfeld <danny@eventbrite.com>
Thu, 6 Aug 2015 15:35:51 +0000 (08:35 -0700)
docs/switching.rst

index ab94124575ef5e297458bd03ced3b02188b58cf3..01a7d0d787bec234c40fe1f541db234ab1a50348 100644 (file)
@@ -116,37 +116,6 @@ Python syntax. Thus this Django code::
 This allows you to pass variables to the method, which is not possible in
 Django. This syntax is also used for macros.
 
-Conditions
-~~~~~~~~~~
-
-In Django you can use the following constructs to check for equality::
-
-    {% ifequal foo "bar" %}
-        ...
-    {% else %}
-        ...
-    {% endifequal %}
-
-In Jinja2 you can use the normal if statement in combination with operators::
-
-    {% if foo == 'bar' %}
-        ...
-    {% else %}
-        ...
-    {% endif %}
-
-You can also have multiple elif branches in your template::
-
-    {% if something %}
-        ...
-    {% elif otherthing %}
-        ...
-    {% elif foothing %}
-        ...
-    {% else %}
-        ...
-    {% endif %}
-
 Filter Arguments
 ~~~~~~~~~~~~~~~~