mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
merged branch acasademont/patch-1 (PR #781)
Commits -------ee87848Little typoc31dd7bThe empty test now also checks for empty arrays Discussion ---------- The empty test now also checks for empty arrays Little change in the docs to reflect that, as i had to check the source code to see if it worked
This commit is contained in:
+1
-1
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user