Jinja2 v2.5.1 Release Notes

  • ๐Ÿš€ Released 2010-08-17

    • StopIteration exceptions raised by functions called from templates are now intercepted and converted to undefineds. This solves a lot of debugging grief. (StopIteration is used internally to abort template execution)
    • ๐ŸŽ Improved performance of macro calls slightly.
    • ๐Ÿ’… Babel extraction can now properly extract newstyle gettext calls.
    • ๐Ÿ’… Using the variable num in newstyle gettext for something else than the pluralize count will no longer raise a :exc:KeyError.
    • ๐Ÿšš Removed builtin markup class and switched to markupsafe. For backwards compatibility the pure Python implementation still exists but is pulled from markupsafe by the Jinja2 developers. The debug support went into a separate feature called "debugsupport" and is disabled by default because it is only relevant for Python 2.4
    • ๐Ÿ›  Fixed an issue with unary operators having the wrong precedence.