The empty test now also checks for empty arrays

This commit is contained in:
Albert Casademont
2012-07-19 14:00:01 +03:00
parent 7c3b987742
commit c31dd7bccb
+1 -1
View File
@@ -5,7 +5,7 @@
.. code-block:: jinja
{# evaluates to true if the foo variable is null, false, or the empty string #}
{# evaluates to true if the foo variable is null, false, an empty array or the empty string #}
{% if foo is empty %}
...
{% endif %}