projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a929d03
)
tweaked the iterable example in the docs
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sat, 21 Apr 2012 05:33:50 +0000 (07:33 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sat, 21 Apr 2012 05:33:50 +0000 (07:33 +0200)
doc/tests/iterable.rst
patch
|
blob
|
history
diff --git
a/doc/tests/iterable.rst
b/doc/tests/iterable.rst
index
c0bc709
..
ed0c2b7
100644
(file)
--- a/
doc/tests/iterable.rst
+++ b/
doc/tests/iterable.rst
@@
-9,6
+9,8
@@
.. code-block:: jinja
{# evaluates to true if the foo variable is iterable #}
- {% if foo is iterable %}
- ...
+ {% if users is iterable %}
+ {% for user in users %}
+ - {{ user }}
+ {% endfor %}
{% endif %}