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 tofalse
. - 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
- 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.