projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fa0b098
)
tweaked the iterable example in the docs
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sat, 21 Apr 2012 13:46:19 +0000 (15:46 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sat, 21 Apr 2012 13:46:26 +0000 (15:46 +0200)
doc/tests/iterable.rst
patch
|
blob
|
history
diff --git
a/doc/tests/iterable.rst
b/doc/tests/iterable.rst
index
ed0c2b7
..
89a172f
100644
(file)
--- a/
doc/tests/iterable.rst
+++ b/
doc/tests/iterable.rst
@@
-11,6
+11,9
@@
{# evaluates to true if the foo variable is iterable #}
{% if users is iterable %}
{% for user in users %}
- - {{ user }}
+ Hello {{ user }}!
{% endfor %}
+ {% else %}
+ {# users is probably a string #}
+ Hello {{ users }}!
{% endif %}