From ff4ffde8b388b9cbb5540a597a23e97e2b18222f Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Thu, 6 Aug 2015 08:35:51 -0700 Subject: [PATCH] Removed outdated condition section on Django --- docs/switching.rst | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/docs/switching.rst b/docs/switching.rst index ab9412457..01a7d0d78 100644 --- a/docs/switching.rst +++ b/docs/switching.rst @@ -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 ~~~~~~~~~~~~~~~~