From: Fabien Potencier Date: Sat, 21 Apr 2012 13:46:19 +0000 (+0200) Subject: tweaked the iterable example in the docs X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=07a953e01622bf2d3f57ac4fcfa4724fa2143075;p=web%2Fkonrad%2Ftwig.git tweaked the iterable example in the docs --- diff --git a/doc/tests/iterable.rst b/doc/tests/iterable.rst index ed0c2b7..89a172f 100644 --- 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 %}