projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7c3b987
)
The empty test now also checks for empty arrays
author
Albert Casademont
<albertcasademont@gmail.com>
Thu, 19 Jul 2012 11:00:01 +0000 (14:00 +0300)
committer
Albert Casademont
<albertcasademont@gmail.com>
Thu, 19 Jul 2012 11:00:01 +0000 (14:00 +0300)
doc/tests/empty.rst
patch
|
blob
|
history
diff --git
a/doc/tests/empty.rst
b/doc/tests/empty.rst
index
0d1eb32
..
5ef3035
100644
(file)
--- a/
doc/tests/empty.rst
+++ b/
doc/tests/empty.rst
@@
-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 %}