Skip to content
Myr

reformat readme

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 0669656 · Browse files · 1 file+433 added−387 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+433 added−387 removed

  • other:+433 added−387 removed

1 file+433 added−387 removed

modified:CHANGES.rst+433 added-387 removed
1 unmodified line
23Version 2.9.74-------------56(bugfix release, in development)6Unreleased78- ``tojson`` filter marks output as safe to match documented behavior.9 (`#718`_)10- Resolved a bug where getting debug locals for tracebacks could11 modify template context.12- Fixed a bug where having many `{% elif ... %}` blocks resulted in a13 "too many levels of indentation" error. These blocks now compile to14 native `elif ..:` instead of `else: if ..:` (#759)8- ``tojson`` filter marks output as safe to match documented behavior.9 :pr:`718`10- Resolved a bug where getting debug locals for tracebacks could11 modify template context.12- Fixed a bug where having many ``{% elif ... %}`` blocks resulted in13 a "too many levels of indentation" error. These blocks now compile14 to native ``elif ..:`` instead of ``else: if ..:`` :issue:`759`1516.. _#718: https://github.com/pallets/jinja/pull/7181617Version 2.9.618-------------20(bugfix release, released on April 3rd 2017)1922- Fixed custom context behavior in fast resolve mode (#675)20Released 2017-04-032122- Fixed custom context behavior in fast resolve mode :issue:`675`232425Version 2.9.526-------------26(bugfix release, released on January 28th 2017)2728- Restored the original repr of the internal `_GroupTuple` because this29 caused issues with ansible and it was an unintended change. (#654)30- Added back support for custom contexts that override the old `resolve`31 method since it was hard for people to spot that this could cause a32 regression.33- Correctly use the buffer for the else block of for loops. This caused34 invalid syntax errors to be caused on 2.x and completely wrong behavior35 on Python 3 (#669)36- Resolve an issue where the `{% extends %}` tag could not be used with37 async environments. (#668)38- Reduce memory footprint slightly by reducing our unicode database dump39 we use for identifier matching on Python 3 (#666)40- Fixed autoescaping not working for macros in async compilation mode. (#671)28Released 2017-01-282930- Restored the original repr of the internal ``_GroupTuple`` because31 this caused issues with ansible and it was an unintended change.32 :issue:`654`33- Added back support for custom contexts that override the old34 ``resolve`` method since it was hard for people to spot that this35 could cause a regression.36- Correctly use the buffer for the else block of for loops. This37 caused invalid syntax errors to be caused on 2.x and completely38 wrong behavior on Python 3 :issue:`669`39- Resolve an issue where the ``{% extends %}`` tag could not be used40 with async environments. :issue:`668`41- Reduce memory footprint slightly by reducing our unicode database42 dump we use for identifier matching on Python 3 :issue:`666`43- Fixed autoescaping not working for macros in async compilation mode.44 :issue:`671`454647Version 2.9.448-------------44(bugfix release, released on January 10th 2017)4946- Solved some warnings for string literals. (#646)47- Increment the bytecode cache version which was not done due to an48 oversight before.49- Corrected bad code generation and scoping for filtered loops. (#649)50- Resolved an issue where top-level output silencing after known extend51 blocks could generate invalid code when blocks where contained in if52 statements. (#651)53- Made the `truncate.leeway` default configurable to improve compatibility54 with older templates.50Released 2017-01-105152- Solved some warnings for string literals. :issue:`646`53- Increment the bytecode cache version which was not done due to an54 oversight before.55- Corrected bad code generation and scoping for filtered loops.56 :issue:`649`57- Resolved an issue where top-level output silencing after known58 extend blocks could generate invalid code when blocks where59 contained in if statements. :issue:`651`60- Made the ``truncate.leeway`` default configurable to improve61 compatibility with older templates.626364Version 2.9.365-------------58(bugfix release, released on January 8th 2017)6660- Restored the use of blocks in macros to the extend that was possible61 before. On Python 3 it would render a generator repr instead of62 the block contents. (#645)63- Set a consistent behavior for assigning of variables in inner scopes64 when the variable is also read from an outer scope. This now sets the65 intended behavior in all situations however it does not restore the66 old behavior where limited assignments to outer scopes was possible.67 For more information and a discussion see #64168- Resolved an issue where `block scoped` would not take advantage of the69 new scoping rules. In some more exotic cases a variable overriden in a70 local scope would not make it into a block.71- Change the code generation of the `with` statement to be in line with the72 new scoping rules. This resolves some unlikely bugs in edge cases. This73 also introduces a new internal `With` node that can be used by extensions.67Released 2017-01-086869- Restored the use of blocks in macros to the extend that was possible70 before. On Python 3 it would render a generator repr instead of the71 block contents. :issue:`645`72- Set a consistent behavior for assigning of variables in inner scopes73 when the variable is also read from an outer scope. This now sets74 the intended behavior in all situations however it does not restore75 the old behavior where limited assignments to outer scopes was76 possible. For more information and a discussion see :issue:`641`77- Resolved an issue where ``block scoped`` would not take advantage of78 the new scoping rules. In some more exotic cases a variable79 overriden in a local scope would not make it into a block.80- Change the code generation of the ``with`` statement to be in line81 with the new scoping rules. This resolves some unlikely bugs in edge82 cases. This also introduces a new internal ``With`` node that can be83 used by extensions.848586Version 2.9.287-------------77(bugfix release, released on January 8th 2017)8879- Fixed a regression that caused for loops to not be able to use the same80 variable for the target as well as source iterator. (#640)81- Add support for a previously unknown behavior of macros. It used to be82 possible in some circumstances to explicitly provide a caller argument83 to macros. While badly buggy and unintended it turns out that this is a84 common case that gets copy pasted around. To not completely break backwards85 compatibility with the most common cases it's now possible to provide an86 explicit keyword argument for caller if it's given an explicit default.87 (#642)89Released 2017-01-089091- Fixed a regression that caused for loops to not be able to use the92 same variable for the target as well as source iterator.93 :issue:`640`94- Add support for a previously unknown behavior of macros. It used to95 be possible in some circumstances to explicitly provide a caller96 argument to macros. While badly buggy and unintended it turns out97 that this is a common case that gets copy pasted around. To not98 completely break backwards compatibility with the most common cases99 it's now possible to provide an explicit keyword argument for caller100 if it's given an explicit default. :issue:`642`101102103Version 2.9.1104-------------91(bugfix release, released on January 7th 2017)10593- Resolved a regression with call block scoping for macros. Nested caller94 blocks that used the same identifiers as outer macros could refer to the95 wrong variable incorrectly.106Released 2017-01-07107108- Resolved a regression with call block scoping for macros. Nested109 caller blocks that used the same identifiers as outer macros could110 refer to the wrong variable incorrectly.111112113Version 2.9114-----------99(codename Derivation, released on January 7th 2017)115101- Change cache key definition in environment. This fixes a performance102 regression introduced in 2.8.103- Added support for `generator_stop` on supported Python versions104 (Python 3.5 and later)105- Corrected a long standing issue with operator precedence of math operations106 not being what was expected.107- Added support for Python 3.6 async iterators through a new async mode.108- Added policies for filter defaults and similar things.109- urlize now sets "rel noopener" by default.110- Support attribute fallback for old-style classes in 2.x.111- Support toplevel set statements in extend situations.112- Restored behavior of Cycler for Python 3 users.113- Subtraction now follows the same behavior as other operators on undefined114 values.115- `map` and friends will now give better error messages if you forgot to116 quote the parameter.117- Depend on MarkupSafe 0.23 or higher.118- Improved the `truncate` filter to support better truncation in case119 the string is barely truncated at all.120- Change the logic for macro autoescaping to be based on the runtime121 autoescaping information at call time instead of macro define time.122- Ported a modified version of the `tojson` filter from Flask to Jinja2123 and hooked it up with the new policy framework.124- Block sets are now marked `safe` by default.125- On Python 2 the asciification of ASCII strings can now be disabled with126 the `compiler.ascii_str` policy.127- Tests now no longer accept an arbitrary expression as first argument but128 a restricted one. This means that you can now properly use multiple129 tests in one expression without extra parentheses. In particular you can130 now write ``foo is divisibleby 2 or foo is divisibleby 3``131 as you would expect.132- Greatly changed the scoping system to be more consistent with what template133 designers and developers expect. There is now no more magic difference134 between the different include and import constructs. Context is now always135 propagated the same way. The only remaining differences is the defaults136 for `with context` and `without context`.137- The `with` and `autoescape` tags are now built-in.138- Added the new `select_autoescape` function which helps configuring better139 autoescaping easier.116Released 2017-01-07, codename Derivation117141Version 2.8.2142-------------118- Change cache key definition in environment. This fixes a performance119 regression introduced in 2.8.120- Added support for ``generator_stop`` on supported Python versions121 (Python 3.5 and later)122- Corrected a long standing issue with operator precedence of math123 operations not being what was expected.124- Added support for Python 3.6 async iterators through a new async125 mode.126- Added policies for filter defaults and similar things.127- Urlize now sets "rel noopener" by default.128- Support attribute fallback for old-style classes in 2.x.129- Support toplevel set statements in extend situations.130- Restored behavior of Cycler for Python 3 users.131- Subtraction now follows the same behavior as other operators on132 undefined values.133- ``map`` and friends will now give better error messages if you134 forgot to quote the parameter.135- Depend on MarkupSafe 0.23 or higher.136- Improved the ``truncate`` filter to support better truncation in137 case the string is barely truncated at all.138- Change the logic for macro autoescaping to be based on the runtime139 autoescaping information at call time instead of macro define time.140- Ported a modified version of the ``tojson`` filter from Flask to141 Jinja2 and hooked it up with the new policy framework.142- Block sets are now marked ``safe`` by default.143- On Python 2 the asciification of ASCII strings can now be disabled144 with the ``compiler.ascii_str`` policy.145- Tests now no longer accept an arbitrary expression as first argument146 but a restricted one. This means that you can now properly use147 multiple tests in one expression without extra parentheses. In148 particular you can now write ``foo is divisibleby 2 or foo is149 divisibleby 3`` as you would expect.150- Greatly changed the scoping system to be more consistent with what151 template designers and developers expect. There is now no more magic152 difference between the different include and import constructs.153 Context is now always propagated the same way. The only remaining154 differences is the defaults for ``with context`` and ``without155 context``.156- The ``with`` and ``autoescape`` tags are now built-in.157- Added the new ``select_autoescape`` function which helps configuring158 better autoescaping easier.159- Fixed a runtime error in the sandbox when attributes of async160 generators were accessed.161144(bugfix release, unreleased)162146- Fixed a runtime error in the sandbox when attributes of async generators147 were accessed.148163Version 2.8.1164-------------165152(bugfix release, released on December 29th 2016)166Released 2016-12-29167154- Fixed the `for_qs` flag for `urlencode`.155- Fixed regression when applying `int` to non-string values.156- SECURITY: if the sandbox mode is used format expressions are now sandboxed157 with the same rules as in Jinja. This solves various information leakage158 problems that can occur with format strings.168- Fixed the ``for_qs`` flag for ``urlencode``.169- Fixed regression when applying ``int`` to non-string values.170- SECURITY: if the sandbox mode is used format expressions are now171 sandboxed with the same rules as in Jinja. This solves various172 information leakage problems that can occur with format strings.173174175Version 2.8176-----------162(codename Replacement, released on July 26th 2015)177164- Added `target` parameter to urlize function.165- Added support for `followsymlinks` to the file system loader.166- The truncate filter now counts the length.167- Added equalto filter that helps with select filters.168- Changed cache keys to use absolute file names if available169 instead of load names.170- Fixed loop length calculation for some iterators.171- Changed how Jinja2 enforces strings to be native strings in172 Python 2 to work when people break their default encoding.173- Added :func:`make_logging_undefined` which returns an undefined174 object that logs failures into a logger.175- If unmarshalling of cached data fails the template will be176 reloaded now.177- Implemented a block ``set`` tag.178- Default cache size was increased to 400 from a low 50.179- Fixed ``is number`` test to accept long integers in all Python versions.180- Changed ``is number`` to accept Decimal as a number.181- Added a check for default arguments followed by non-default arguments. This182 change makes ``{% macro m(x, y=1, z) %}...{% endmacro %}`` a syntax error. The183 previous behavior for this code was broken anyway (resulting in the default184 value being applied to `y`).185- Add ability to use custom subclasses of ``jinja2.compiler.CodeGenerator`` and186 ``jinja2.runtime.Context`` by adding two new attributes to the environment187 (`code_generator_class` and `context_class`) (pull request ``#404``).188- added support for context/environment/evalctx decorator functions on189 the finalize callback of the environment.190- escape query strings for urlencode properly. Previously slashes were not191 escaped in that place.192- Add 'base' parameter to 'int' filter.178Released 2015-07-26, codename Replacement179180- Added ``target`` parameter to urlize function.181- Added support for ``followsymlinks`` to the file system loader.182- The truncate filter now counts the length.183- Added equalto filter that helps with select filters.184- Changed cache keys to use absolute file names if available instead185 of load names.186- Fixed loop length calculation for some iterators.187- Changed how Jinja2 enforces strings to be native strings in Python 2188 to work when people break their default encoding.189- Added :func:`make_logging_undefined` which returns an undefined190 object that logs failures into a logger.191- If unmarshalling of cached data fails the template will be reloaded192 now.193- Implemented a block ``set`` tag.194- Default cache size was increased to 400 from a low 50.195- Fixed ``is number`` test to accept long integers in all Python196 versions.197- Changed ``is number`` to accept Decimal as a number.198- Added a check for default arguments followed by non-default199 arguments. This change makes ``{% macro m(x, y=1, z) %}`` a syntax200 error. The previous behavior for this code was broken anyway201 (resulting in the default value being applied to ``y``).202- Add ability to use custom subclasses of203 ``jinja2.compiler.CodeGenerator`` and ``jinja2.runtime.Context`` by204 adding two new attributes to the environment205 (``code_generator_class`` and ``context_class``) (pull request206 ``:issue:`404```).207- Added support for context/environment/evalctx decorator functions on208 the finalize callback of the environment.209- Escape query strings for urlencode properly. Previously slashes were210 not escaped in that place.211- Add 'base' parameter to 'int' filter.212213214Version 2.7.3215-------------196(bugfix release, released on June 6th 2014)216198- Security issue: Corrected the security fix for the cache folder. This199 fix was provided by RedHat.217Released 2014-06-06218219- Security issue: Corrected the security fix for the cache folder.220 This fix was provided by RedHat.221222223Version 2.7.2224-------------203(bugfix release, released on January 10th 2014)225205- Prefix loader was not forwarding the locals properly to206 inner loaders. This is now fixed.207- Security issue: Changed the default folder for the filesystem cache to be208 user specific and read and write protected on UNIX systems. See209 `Debian bug 734747`_ for more information.226Released 2014-01-10227228- Prefix loader was not forwarding the locals properly to inner229 loaders. This is now fixed.230- Security issue: Changed the default folder for the filesystem cache231 to be user specific and read and write protected on UNIX systems.232 See `Debian bug 734747`_ for more information.233234.. _Debian bug 734747: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747235236237Version 2.7.1238-------------215(bugfix release, released on August 7th 2013)239217- Fixed a bug with ``call_filter`` not working properly on environment218 and context filters.219- Fixed lack of Python 3 support for bytecode caches.220- Reverted support for defining blocks in included templates as this221 broke existing templates for users.222- Fixed some warnings with hashing of undefineds and nodes if Python223 is run with warnings for Python 3.224- Added support for properly hashing undefined objects.225- Fixed a bug with the title filter not working on already uppercase226 strings.240Released 2013-08-07241242- Fixed a bug with ``call_filter`` not working properly on environment243 and context filters.244- Fixed lack of Python 3 support for bytecode caches.245- Reverted support for defining blocks in included templates as this246 broke existing templates for users.247- Fixed some warnings with hashing of undefineds and nodes if Python248 is run with warnings for Python 3.249- Added support for properly hashing undefined objects.250- Fixed a bug with the title filter not working on already uppercase251 strings.252253254Version 2.7255-----------230(codename Translation, released on May 20th 2013)256232- Choice and prefix loaders now dispatch source and template lookup233 separately in order to work in combination with module loaders as234 advertised.235- Fixed filesizeformat.236- Added a non-silent option for babel extraction.237- Added `urlencode` filter that automatically quotes values for238 URL safe usage with utf-8 as only supported encoding. If applications239 want to change this encoding they can override the filter.240- Added `keep-trailing-newline` configuration to environments and241 templates to optionally preserve the final trailing newline.242- Accessing `last` on the loop context no longer causes the iterator243 to be consumed into a list.244- Python requirement changed: 2.6, 2.7 or >= 3.3 are required now,245 supported by same source code, using the "six" compatibility library.246- Allow `contextfunction` and other decorators to be applied to `__call__`.247- Added support for changing from newline to different signs in the `wordwrap`248 filter.249- Added support for ignoring memcache errors silently.250- Added support for keeping the trailing newline in templates.251- Added finer grained support for stripping whitespace on the left side252 of blocks.253- Added `map`, `select`, `reject`, `selectattr` and `rejectattr`254 filters.255- Added support for `loop.depth` to figure out how deep inside a recursive256 loop the code is.257- Disabled py_compile for pypy and python 3.257Released 2013-05-20, codename Translation258259- Choice and prefix loaders now dispatch source and template lookup260 separately in order to work in combination with module loaders as261 advertised.262- Fixed filesizeformat.263- Added a non-silent option for babel extraction.264- Added ``urlencode`` filter that automatically quotes values for URL265 safe usage with utf-8 as only supported encoding. If applications266 want to change this encoding they can override the filter.267- Added ``keep-trailing-newline`` configuration to environments and268 templates to optionally preserve the final trailing newline.269- Accessing ``last`` on the loop context no longer causes the iterator270 to be consumed into a list.271- Python requirement changed: 2.6, 2.7 or >= 3.3 are required now,272 supported by same source code, using the "six" compatibility273 library.274- Allow ``contextfunction`` and other decorators to be applied to275 ``__call__``.276- Added support for changing from newline to different signs in the277 ``wordwrap`` filter.278- Added support for ignoring memcache errors silently.279- Added support for keeping the trailing newline in templates.280- Added finer grained support for stripping whitespace on the left281 side of blocks.282- Added ``map``, ``select``, ``reject``, ``selectattr`` and283 ``rejectattr`` filters.284- Added support for ``loop.depth`` to figure out how deep inside a285 recursive loop the code is.286- Disabled py_compile for pypy and python 3.287288289Version 2.6290-----------261(codename Convolution, released on July 24th 2011)291263- internal attributes now raise an internal attribute error now instead264 of returning an undefined. This fixes problems when passing undefined265 objects to Python semantics expecting APIs.266- traceback support now works properly for PyPy. (Tested with 1.4)267- implemented operator intercepting for sandboxed environments. This268 allows application developers to disable builtin operators for better269 security. (For instance limit the mathematical operators to actual270 integers instead of longs)271- groupby filter now supports dotted notation for grouping by attributes272 of attributes.273- scoped blocks now properly treat toplevel assignments and imports.274 Previously an import suddenly "disappeared" in a scoped block.275- automatically detect newer Python interpreter versions before loading code276 from bytecode caches to prevent segfaults on invalid opcodes. The segfault277 in earlier Jinja2 versions here was not a Jinja2 bug but a limitation in278 the underlying Python interpreter. If you notice Jinja2 segfaulting in279 earlier versions after an upgrade of the Python interpreter you don't have280 to upgrade, it's enough to flush the bytecode cache. This just no longer281 makes this necessary, Jinja2 will automatically detect these cases now.282- the sum filter can now sum up values by attribute. This is a backwards283 incompatible change. The argument to the filter previously was the284 optional starting index which defaults to zero. This now became the285 second argument to the function because it's rarely used.286- like sum, sort now also makes it possible to order items by attribute.287- like sum and sort, join now also is able to join attributes of objects288 as string.289- the internal eval context now has a reference to the environment.290- added a mapping test to see if an object is a dict or an object with291 a similar interface.292Released 2011-07-24, codename Convolution293294- Internal attributes now raise an internal attribute error now295 instead of returning an undefined. This fixes problems when passing296 undefined objects to Python semantics expecting APIs.297- Traceback support now works properly for PyPy. (Tested with 1.4)298- Implemented operator intercepting for sandboxed environments. This299 allows application developers to disable builtin operators for300 better security. (For instance limit the mathematical operators to301 actual integers instead of longs)302- Groupby filter now supports dotted notation for grouping by303 attributes of attributes.304- Scoped blocks now properly treat toplevel assignments and imports.305 Previously an import suddenly "disappeared" in a scoped block.306- Automatically detect newer Python interpreter versions before307 loading code from bytecode caches to prevent segfaults on invalid308 opcodes. The segfault in earlier Jinja2 versions here was not a309 Jinja2 bug but a limitation in the underlying Python interpreter. If310 you notice Jinja2 segfaulting in earlier versions after an upgrade311 of the Python interpreter you don't have to upgrade, it's enough to312 flush the bytecode cache. This just no longer makes this necessary,313 Jinja2 will automatically detect these cases now.314- The sum filter can now sum up values by attribute. This is a315 backwards incompatible change. The argument to the filter previously316 was the optional starting index which defaults to zero. This now317 became the second argument to the function because it's rarely used.318- Like sum, sort now also makes it possible to order items by319 attribute.320- Like sum and sort, join now also is able to join attributes of321 objects as string.322- The internal eval context now has a reference to the environment.323- Added a mapping test to see if an object is a dict or an object with324 a similar interface.325326327Version 2.5.5328-------------295(re-release of 2.5.4 with built documentation removed for filesize.296 Released on October 18th 2010)329298- built documentation is no longer part of release.330Released 2010-10-18331332- Built documentation is no longer part of release.333334335Version 2.5.4336-------------302(bugfix release, released on October 17th 2010)337304- Fixed extensions not loading properly with overlays.305- Work around a bug in cpython for the debugger that causes segfaults306 on 64bit big-endian architectures.338Released 2010-10-17339340- Fixed extensions not loading properly with overlays.341- Work around a bug in cpython for the debugger that causes segfaults342 on 64bit big-endian architectures.343344345Version 2.5.3346-------------310(bugfix release, released on October 17th 2010)347312- fixed an operator precedence error introduced in 2.5.2. Statements313 like "-foo.bar" had their implicit parentheses applied around the314 first part of the expression ("(-foo).bar") instead of the more315 correct "-(foo.bar)".348Released 2010-10-17349350- Fixed an operator precedence error introduced in 2.5.2. Statements351 like "-foo.bar" had their implicit parentheses applied around the352 first part of the expression ("(-foo).bar") instead of the more353 correct "-(foo.bar)".354355356Version 2.5.2357-------------319(bugfix release, released on August 18th 2010)358321- improved setup.py script to better work with assumptions people322 might still have from it (``--with-speedups``).323- fixed a packaging error that excluded the new debug support.359Released 2010-08-18360361- Improved setup.py script to better work with assumptions people362 might still have from it (``--with-speedups``).363- Fixed a packaging error that excluded the new debug support.364365366Version 2.5.1367-------------327(bugfix release, released on August 17th 2010)368329- StopIteration exceptions raised by functions called from templates330 are now intercepted and converted to undefineds. This solves a331 lot of debugging grief. (StopIteration is used internally to332 abort template execution)333- improved performance of macro calls slightly.334- babel extraction can now properly extract newstyle gettext calls.335- using the variable `num` in newstyle gettext for something else336 than the pluralize count will no longer raise a :exc:`KeyError`.337- removed builtin markup class and switched to markupsafe. For backwards338 compatibility the pure Python implementation still exists but is339 pulled from markupsafe by the Jinja2 developers. The debug support340 went into a separate feature called "debugsupport" and is disabled341 by default because it is only relevant for Python 2.4342- fixed an issue with unary operators having the wrong precedence.369Released 2010-08-17370371- StopIteration exceptions raised by functions called from templates372 are now intercepted and converted to undefineds. This solves a lot373 of debugging grief. (StopIteration is used internally to abort374 template execution)375- Improved performance of macro calls slightly.376- Babel extraction can now properly extract newstyle gettext calls.377- Using the variable ``num`` in newstyle gettext for something else378 than the pluralize count will no longer raise a :exc:`KeyError`.379- Removed builtin markup class and switched to markupsafe. For380 backwards compatibility the pure Python implementation still exists381 but is pulled from markupsafe by the Jinja2 developers. The debug382 support went into a separate feature called "debugsupport" and is383 disabled by default because it is only relevant for Python 2.4384- Fixed an issue with unary operators having the wrong precedence.385386387Version 2.5388-----------346(codename Incoherence, released on May 29th 2010)389348- improved the sort filter (should have worked like this for a349 long time) by adding support for case insensitive searches.350- fixed a bug for getattribute constant folding.351- support for newstyle gettext translations which result in a352 nicer in-template user interface and more consistent353 catalogs. (:ref:`newstyle-gettext`)354- it's now possible to register extensions after an environment355 was created.390Released 2010-05-29, codename Incoherence391392- Improved the sort filter (should have worked like this for a long393 time) by adding support for case insensitive searches.394- Fixed a bug for getattribute constant folding.395- Support for newstyle gettext translations which result in a nicer396 in-template user interface and more consistent catalogs.397 (:ref:`newstyle-gettext`)398- It's now possible to register extensions after an environment was399 created.400401402Version 2.4.1403-------------359(bugfix release, released on April 20th 2010)404361- fixed an error reporting bug for undefineds.405Released 2010-04-20406407- Fixed an error reporting bug for undefined.408409410Version 2.4411-----------365(codename Correlation, released on April 13th 2010)412367- the environment template loading functions now transparently368 pass through a template object if it was passed to it. This369 makes it possible to import or extend from a template object370 that was passed to the template.371- added a :class:`ModuleLoader` that can load templates from372 precompiled sources. The environment now features a method373 to compile the templates from a configured loader into a zip374 file or folder.375- the _speedups C extension now supports Python 3.376- added support for autoescaping toggling sections and support377 for evaluation contexts (:ref:`eval-context`).378- extensions have a priority now.413Released 2010-04-13, codename Correlation414415- The environment template loading functions now transparently pass416 through a template object if it was passed to it. This makes it417 possible to import or extend from a template object that was passed418 to the template.419- Added a :class:`ModuleLoader` that can load templates from420 precompiled sources. The environment now features a method to421 compile the templates from a configured loader into a zip file or422 folder.423- The _speedups C extension now supports Python 3.424- Added support for autoescaping toggling sections and support for425 evaluation contexts (:ref:`eval-context`).426- Extensions have a priority now.427428429Version 2.3.1430-------------382(bugfix release, released on February 19th 2010)431384- fixed an error reporting bug on all python versions385- fixed an error reporting bug on Python 2.4432Released 2010-02-19433434- Fixed an error reporting bug on all python versions435- Fixed an error reporting bug on Python 2.4436437438Version 2.3439-----------389(3000 Pythons, released on February 10th 2010)440391- fixes issue with code generator that causes unbound variables392 to be generated if set was used in if-blocks and other small393 identifier problems.394- include tags are now able to select between multiple templates395 and take the first that exists, if a list of templates is396 given.397- fixed a problem with having call blocks in outer scopes that398 have an argument that is also used as local variable in an399 inner frame (#360).400- greatly improved error message reporting (#339)401- implicit tuple expressions can no longer be totally empty.402 This change makes ``{% if %}...{% endif %}`` a syntax error403 now. (#364)404- added support for translator comments if extracted via babel.405- added with-statement extension.406- experimental Python 3 support.441Released 2010-02-10, codename 3000 Pythons442443- Fixes issue with code generator that causes unbound variables to be444 generated if set was used in if-blocks and other small identifier445 problems.446- Include tags are now able to select between multiple templates and447 take the first that exists, if a list of templates is given.448- Fixed a problem with having call blocks in outer scopes that have an449 argument that is also used as local variable in an inner frame450 :issue:`360`.451- Greatly improved error message reporting :pr:`339`452- Implicit tuple expressions can no longer be totally empty. This453 change makes ``{% if %}`` a syntax error now. :issue:`364`454- Added support for translator comments if extracted via babel.455- Added with-statement extension.456- Experimental Python 3 support.457458459Version 2.2.1460-------------410(bugfix release, released on September 14th 2009)461412- fixes some smaller problems for Jinja2 on Jython.462Released 2009-09-14463414Version 2.2415-----------416(codename Kong, released on September 13th 2009)464- Fixes some smaller problems for Jinja2 on Jython.465418- Include statements can now be marked with ``ignore missing`` to skip419 non existing templates.420- Priority of `not` raised. It's now possible to write `not foo in bar`421 as an alias to `foo not in bar` like in python. Previously the grammar422 required parentheses (`not (foo in bar)`) which was odd.423- Fixed a bug that caused syntax errors when defining macros or using the424 `{% call %}` tag inside loops.425- Fixed a bug in the parser that made ``{{ foo[1, 2] }}`` impossible.426- Made it possible to refer to names from outer scopes in included templates427 that were unused in the callers frame (#327)428- Fixed a bug that caused internal errors if names where used as iteration429 variable and regular variable *after* the loop if that variable was unused430 *before* the loop. (#331)431- Added support for optional `scoped` modifier to blocks.432- Added support for line-comments.433- Added the `meta` module.434- Renamed (undocumented) attribute "overlay" to "overlayed" on the435 environment because it was clashing with a method of the same name.436- speedup extension is now disabled by default.466438Version 2.1.1439-------------440(Bugfix release)441442- Fixed a translation error caused by looping over empty recursive loops.443444Version 2.1467Version 2.2468-----------446(codename Yasuzō, released on November 23rd 2008)469448- fixed a bug with nested loops and the special loop variable. Before the449 change an inner loop overwrote the loop variable from the outer one after450 iteration.470Released 2009-09-13, codename Kong471452- fixed a bug with the i18n extension that caused the explicit pluralization453 block to look up the wrong variable.472- Include statements can now be marked with ``ignore missing`` to skip473 non existing templates.474- Priority of ``not`` raised. It's now possible to write ``not foo in475 bar`` as an alias to ``foo not in bar`` like in python. Previously476 the grammar required parentheses (``not (foo in bar)``) which was477 odd.478- Fixed a bug that caused syntax errors when defining macros or using479 the ``{% call %}`` tag inside loops.480- Fixed a bug in the parser that made ``{{ foo[1, 2] }}`` impossible.481- Made it possible to refer to names from outer scopes in included482 templates that were unused in the callers frame :issue:`327`483- Fixed a bug that caused internal errors if names where used as484 iteration variable and regular variable *after* the loop if that485 variable was unused *before* the loop. :pr:`331`486- Added support for optional ``scoped`` modifier to blocks.487- Added support for line-comments.488- Added the ``meta`` module.489- Renamed (undocumented) attribute "overlay" to "overlayed" on the490 environment because it was clashing with a method of the same name.491- Speedup extension is now disabled by default.492455- fixed a limitation in the lexer that made ``{{ foo.0.0 }}`` impossible.493457- index based subscribing of variables with a constant value returns an458 undefined object now instead of raising an index error. This was a bug459 caused by eager optimizing.494Version 2.1.1495-------------496461- the i18n extension looks up `foo.ugettext` now followed by `foo.gettext`462 if an translations object is installed. This makes dealing with custom463 translations classes easier.497Released 2008-12-25498465- fixed a confusing behavior with conditional extending. loops were partially466 executed under some conditions even though they were not part of a visible467 area.499- Fixed a translation error caused by looping over empty recursive500 loops.501469- added `sort` filter that works like `dictsort` but for arbitrary sequences.502471- fixed a bug with empty statements in macros.503Version 2.1504-----------505473- implemented a bytecode cache system. (:ref:`bytecode-cache`)506Released 2008-11-23, codename Yasuzō507508- Fixed a bug with nested loops and the special loop variable. Before509 the change an inner loop overwrote the loop variable from the outer510 one after iteration.511- Fixed a bug with the i18n extension that caused the explicit512 pluralization block to look up the wrong variable.513- Fixed a limitation in the lexer that made ``{{ foo.0.0 }}``514 impossible.515- Index based subscribing of variables with a constant value returns516 an undefined object now instead of raising an index error. This was517 a bug caused by eager optimizing.518- The i18n extension looks up ``foo.ugettext`` now followed by519 ``foo.gettext`` if an translations object is installed. This makes520 dealing with custom translations classes easier.521- Fixed a confusing behavior with conditional extending. loops were522 partially executed under some conditions even though they were not523 part of a visible area.524- Added ``sort`` filter that works like ``dictsort`` but for arbitrary525 sequences.526- Fixed a bug with empty statements in macros.527- Implemented a bytecode cache system. (:ref:`bytecode-cache`)475- the template context is now weakref-able528- The template context is now weakref-able529- Inclusions and imports "with context" forward all variables now, not530 only the initial context.531- Added a cycle helper called ``cycler``.532- Added a joining helper called ``joiner``.533- Added a ``compile_expression`` method to the environment that allows534 compiling of Jinja expressions into callable Python objects.535- Fixed an escaping bug in urlize536477- inclusions and imports "with context" forward all variables now, not only478 the initial context.537480- added a cycle helper called `cycler`.481482- added a joining helper called `joiner`.483484- added a `compile_expression` method to the environment that allows compiling485 of Jinja expressions into callable Python objects.486487- fixed an escaping bug in urlize488538Version 2.0539-----------491(codename jinjavitus, released on July 17th 2008)540493- the subscribing of objects (looking up attributes and items) changed from494 slightly. It's now possible to give attributes or items a higher priority495 by either using dot-notation lookup or the bracket syntax. This also496 changed the AST slightly. `Subscript` is gone and was replaced with497 :class:`~jinja2.nodes.Getitem` and :class:`~jinja2.nodes.Getattr`.541Released 2008-07-17, codename Jinjavitus542543- The subscribing of objects (looking up attributes and items) changed544 from slightly. It's now possible to give attributes or items a545 higher priority by either using dot-notation lookup or the bracket546 syntax. This also changed the AST slightly. ``Subscript`` is gone547 and was replaced with :class:`~jinja2.nodes.Getitem` and548 :class:`~jinja2.nodes.Getattr`. For more information see :ref:`the499 For more information see :ref:`the implementation details <notes-on-subscriptions>`.549 implementation details <notes-on-subscriptions>`.550- Added support for preprocessing and token stream filtering for551 extensions. This would allow extensions to allow simplified gettext552 calls in template data and something similar.553- Added :meth:`jinja2.environment.TemplateStream.dump`.554- Added missing support for implicit string literal concatenation.555 ``{{ "foo" "bar" }}`` is equivalent to ``{{ "foobar" }}``556- ``else`` is optional for conditional expressions. If not given it557 evaluates to ``false``.558- Improved error reporting for undefined values by providing a559 position.560- ``filesizeformat`` filter uses decimal prefixes now per default and561 can be set to binary mode with the second parameter.562- Fixed bug in finalizer563501- added support for preprocessing and token stream filtering for extensions.502 This would allow extensions to allow simplified gettext calls in template503 data and something similar.564505- added :meth:`jinja2.environment.TemplateStream.dump`.506507- added missing support for implicit string literal concatenation.508 ``{{ "foo" "bar" }}`` is equivalent to ``{{ "foobar" }}``509510- `else` is optional for conditional expressions. If not given it evaluates511 to `false`.512513- improved error reporting for undefined values by providing a position.514515- `filesizeformat` filter uses decimal prefixes now per default and can be516 set to binary mode with the second parameter.517518- fixed bug in finalizer519565Version 2.0rc1566--------------522(no codename, released on June 9th 2008)567568Released 2008-06-09569524- first release of Jinja2570- First release of Jinja2