feat(if): Support elif tags

This commit is contained in:
Kyle Fuller
2017-03-03 09:56:41 +00:00
parent 233dcfc59a
commit dc8759ba34
4 changed files with 135 additions and 11 deletions

View File

@@ -52,10 +52,12 @@ true the contents of the block are processed. Being true is defined as:
.. code-block:: html+django
{% if variable %}
The variable was found in the current context.
{% if admin %}
The user is an administrator.
{% elif user %}
A user is logged in.
{% else %}
The variable was not found.
No user was found.
{% endif %}
Operators