Jinja2 v2.0 Release Notes

  • ๐Ÿš€ Released 2008-07-17, codename Jinjavitus

    • The subscribing of objects (looking up attributes and items) changed from slightly. It's now possible to give attributes or items a higher priority by either using dot-notation lookup or the bracket syntax. This also changed the AST slightly. Subscript is gone and was replaced with :class:~jinja2.nodes.Getitem and :class:~jinja2.nodes.Getattr. For more information see :ref:the implementation details <notes-on-subscriptions>.
    • ๐Ÿ‘ Added support for preprocessing and token stream filtering for extensions. This would allow extensions to allow simplified gettext calls in template data and something similar.
    • โœ… Added :meth:jinja2.environment.TemplateStream.dump.
    • ๐Ÿ‘ Added missing support for implicit string literal concatenation. {{ "foo" "bar" }} is equivalent to {{ "foobar" }}
    • else is optional for conditional expressions. If not given it evaluates to false.
    • Improved error reporting for undefined values by providing a position.
    • 0๏ธโƒฃ filesizeformat filter uses decimal prefixes now per default and can be set to binary mode with the second parameter.
    • ๐Ÿ›  Fixed bug in finalizer