Professional Documents
Culture Documents
Errata
Errata
Should you find additional errors in the materials, please report them to
ip@ipspace.net. Thank you!
CREDITS
The iteritems() and Jinja2 scoping problem were reports by Etienne
Depasquale. Thank you!
Note: the Jinja2 examples in the GitHub repository have been updated to use
items() instead of iteritems().
In Jinja2 release 2.9 the value of a variable set within a loop is reinitialized on
every iteration of the loop.
Workarounds:
This material is copyrighted and licensed for the sole use by Mikel Maeso (mikel.maeso@gmail.com [85.87.178.33]). More information at http://www.ipSpace.net/Webinars
Use this technique or a custom Jinja2 filter if you have to preserve more
state across loop iterations.
This material is copyrighted and licensed for the sole use by Mikel Maeso (mikel.maeso@gmail.com [85.87.178.33]). More information at http://www.ipSpace.net/Webinars