Skip to content
Myr

Merge pull request #112 from Cito/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Addition/correction for pull request #69 - add note to docs

authored by Armin Ronacher · committed by Armin Ronacher · parents fe63b44, 4780c2c · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/templates.rst+4 added
610 unmodified lines
611 <li><em>no users found</em></li>612 {% endfor %}613 </ul>614615Note that in Python `else` blocks are executed whenever the corresponding616loop did not `break`. Since in Jinja loops cannot `break` anyway,617a slightly different behavior of the `else` keyword was chosen.618619It is also possible to use loops recursively. This is useful if you are620dealing with recursive data such as sitemaps. To use loops recursively you621basically have to add the `recursive` modifier to the loop definition and622call the `loop` variable with the new iterable where you want to recurse.
807 unmodified lines