Jinja2 v2.7 Release Notes
-
๐ Released 2013-05-20, codename Translation
- Choice and prefix loaders now dispatch source and template lookup separately in order to work in combination with module loaders as advertised.
- ๐ Fixed filesizeformat.
- Added a non-silent option for babel extraction.
- Added
urlencode
filter that automatically quotes values for URL safe usage with utf-8 as only supported encoding. If applications want to change this encoding they can override the filter. - ๐ง Added
keep-trailing-newline
configuration to environments and templates to optionally preserve the final trailing newline. - Accessing
last
on the loop context no longer causes the iterator to be consumed into a list. - Python requirement changed: 2.6, 2.7 or >= 3.3 are required now, supported by same source code, using the "six" compatibility library.
- Allow
contextfunction
and other decorators to be applied to__call__
. - ๐ Added support for changing from newline to different signs in the
wordwrap
filter. - ๐ Added support for ignoring memcache errors silently.
- ๐ Added support for keeping the trailing newline in templates.
- ๐ Added finer grained support for stripping whitespace on the left side of blocks.
- Added
map
,select
,reject
,selectattr
andrejectattr
filters. - ๐ Added support for
loop.depth
to figure out how deep inside a recursive loop the code is. - Disabled py_compile for pypy and python 3.