Jinja2 v2.2 Release Notes

  • ๐Ÿš€ Released 2009-09-13, codename Kong

    • Include statements can now be marked with ignore missing to skip non existing templates.
    • Priority of not raised. It's now possible to write not foo in bar as an alias to foo not in bar like in python. Previously the grammar required parentheses (not (foo in bar)) which was odd.
    • ๐Ÿ›  Fixed a bug that caused syntax errors when defining macros or using the {% call %} tag inside loops.
    • ๐Ÿ“œ Fixed a bug in the parser that made {{ foo[1, 2] }} impossible.
    • Made it possible to refer to names from outer scopes in included templates that were unused in the callers frame :issue:327
    • ๐Ÿ›  Fixed a bug that caused internal errors if names where used as iteration variable and regular variable after the loop if that variable was unused before the loop. :pr:331
    • ๐Ÿ‘ Added support for optional scoped modifier to blocks.
    • ๐Ÿ‘ Added support for line-comments.
    • Added the meta module.
    • Renamed (undocumented) attribute "overlay" to "overlayed" on the environment because it was clashing with a method of the same name.
    • 0๏ธโƒฃ Speedup extension is now disabled by default.