All Versions
47
Latest Version
Avg Release Cycle
90 days
Latest Release
-

Changelog History
Page 4

  • v2.6 Changes

    ๐Ÿš€ Released 2011-07-24, codename Convolution

    • Internal attributes now raise an internal attribute error now instead of returning an undefined. This fixes problems when passing undefined objects to Python semantics expecting APIs.
    • โœ… Traceback support now works properly for PyPy. (Tested with 1.4)
    • Implemented operator intercepting for sandboxed environments. This allows application developers to disable builtin operators for better security. (For instance limit the mathematical operators to actual integers instead of longs)
    • ๐Ÿ‘ Groupby filter now supports dotted notation for grouping by attributes of attributes.
    • Scoped blocks now properly treat toplevel assignments and imports. Previously an import suddenly "disappeared" in a scoped block.
    • Automatically detect newer Python interpreter versions before loading code from bytecode caches to prevent segfaults on invalid opcodes. The segfault in earlier Jinja2 versions here was not a Jinja2 bug but a limitation in the underlying Python interpreter. If you notice Jinja2 segfaulting in earlier versions after an upgrade of the Python interpreter you don't have to upgrade, it's enough to flush the bytecode cache. This just no longer makes this necessary, Jinja2 will automatically detect these cases now.
    • The sum filter can now sum up values by attribute. This is a backwards incompatible change. The argument to the filter previously was the optional starting index which defaults to zero. This now became the second argument to the function because it's rarely used.
    • Like sum, sort now also makes it possible to order items by attribute.
    • Like sum and sort, join now also is able to join attributes of objects as string.
    • The internal eval context now has a reference to the environment.
    • ๐Ÿ‘€ Added a mapping test to see if an object is a dict or an object with a similar interface.
  • v2.5.5 Changes

    ๐Ÿš€ Released 2010-10-18

    • ๐Ÿ“š Built documentation is no longer part of release.
  • v2.5.4 Changes

    ๐Ÿš€ Released 2010-10-17

    • ๐Ÿ›  Fixed extensions not loading properly with overlays.
    • โ†ช Work around a bug in cpython for the debugger that causes segfaults on 64bit big-endian architectures.
  • v2.5.3 Changes

    ๐Ÿš€ Released 2010-10-17

    • ๐Ÿ›  Fixed an operator precedence error introduced in 2.5.2. Statements like "-foo.bar" had their implicit parentheses applied around the first part of the expression ("(-foo).bar") instead of the more correct "-(foo.bar)".
  • v2.5.2 Changes

    ๐Ÿš€ Released 2010-08-18

    • ๐Ÿ‘ Improved setup.py script to better work with assumptions people might still have from it (--with-speedups).
    • ๐Ÿ›  Fixed a packaging error that excluded the new debug support.
  • v2.5.1 Changes

    ๐Ÿš€ 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.
  • v2.5 Changes

    ๐Ÿš€ Released 2010-05-29, codename Incoherence

    • Improved the sort filter (should have worked like this for a long time) by adding support for case insensitive searches.
    • ๐Ÿ›  Fixed a bug for getattribute constant folding.
    • ๐Ÿ’… Support for newstyle gettext translations which result in a nicer in-template user interface and more consistent catalogs. (:ref:newstyle-gettext)
    • It's now possible to register extensions after an environment was created.
  • v2.4.1 Changes

    ๐Ÿš€ Released 2010-04-20

    • ๐Ÿ›  Fixed an error reporting bug for undefined.
  • v2.4 Changes

    ๐Ÿš€ Released 2010-04-13, codename Correlation

    • The environment template loading functions now transparently pass through a template object if it was passed to it. This makes it possible to import or extend from a template object that was passed to the template.
    • Added a :class:ModuleLoader that can load templates from precompiled sources. The environment now features a method to compile the templates from a configured loader into a zip file or folder.
    • ๐Ÿ‘ The _speedups C extension now supports Python 3.
    • ๐Ÿ‘ Added support for autoescaping toggling sections and support for evaluation contexts (:ref:eval-context).
    • Extensions have a priority now.
  • v2.3.1 Changes

    ๐Ÿš€ Released 2010-02-19

    • ๐Ÿ›  Fixed an error reporting bug on all python versions
    • ๐Ÿ›  Fixed an error reporting bug on Python 2.4