Update docs

This commit is contained in:
Ilya Puchka
2018-08-12 20:37:10 +01:00
committed by David Jennes
parent 6649b7e716
commit 479fdad30b

View File

@@ -50,6 +50,17 @@ For example, if you have the following context:
The result of {{ item[key] }} will be the same as {{ item.name }}. It will first evaluate the result of {{ key }}, and only then evaluate the lookup expression. The result of {{ item[key] }} will be the same as {{ item.name }}. It will first evaluate the result of {{ key }}, and only then evaluate the lookup expression.
Boolean expressions
-------------------
Boolean expressions can be rendered using ``{{ ... }}`` tag.
For example, this will output string `true` if variable is equal to 1 and `false` otherwise:
.. code-block:: html+django
{{ variable == 1 }}
Filters Filters
~~~~~~~ ~~~~~~~