feat(if): Support equatable operator

This commit is contained in:
Kyle Fuller
2016-11-28 17:51:17 +00:00
parent 111306fb60
commit e989317929
5 changed files with 86 additions and 1 deletions

View File

@@ -95,6 +95,17 @@ Will be treated as:
one or (two and three)
``==`` operator
"""""""""""""""
.. code-block:: html+django
{% if value == other_value %}
value is equal to other_value
{% endif %}
.. note:: The equality operator only supports numerical, string and boolean types.
``ifnot``
~~~~~~~~~