Skip to content


Subversion checkout URL

You can clone with
Download ZIP


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

merged 1 commit into from

2 participants


No description provided.

@Cito Cito referenced this pull request

Minor doc fixes. #69

@mitsuhiko mitsuhiko merged commit e403e52 into mitsuhiko:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 21, 2012
  1. @Cito
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/templates.rst
4 docs/templates.rst
@@ -571,6 +571,10 @@ by using `else`::
{% endfor %}
+Note that in Python `else` blocks are executed whenever the corresponding
+loop did not `break`. Since in Jinja loops cannot `break` anyway,
+a slightly different behavior of the `else` keyword was chosen.
It is also possible to use loops recursively. This is useful if you are
dealing with recursive data such as sitemaps. To use loops recursively you
basically have to add the `recursive` modifier to the loop definition and
Something went wrong with that request. Please try again.