tip is now 2.2-dev
[jinja2.git] / CHANGES
1 Jinja2 Changelog
2 ================
3
4 Version 2.2
5 -----------
6 (codename to be selected, release date yet unknown)
7
8 Version 2.1
9 -----------
10 (codename Yasuzō, released on November 23rd 2008)
11
12 - fixed a bug with nested loops and the special loop variable.  Before the
13   change an inner loop overwrote the loop variable from the outer one after
14   iteration.
15
16 - fixed a bug with the i18n extension that caused the explicit pluralization
17   block to look up the wrong variable.
18
19 - fixed a limitation in the lexer that made ``{{ foo.0.0 }}`` impossible.
20
21 - index based subscribing of variables with a constant value returns an
22   undefined object now instead of raising an index error.  This was a bug
23   caused by eager optimizing.
24
25 - the i18n extension looks up `foo.ugettext` now followed by `foo.gettext`
26   if an translations object is installed.  This makes dealing with custom
27   translations classes easier.
28
29 - fixed a confusing behavior with conditional extending.  loops were partially
30   executed under some conditions even though they were not part of a visible
31   area.
32
33 - added `sort` filter that works like `dictsort` but for arbitrary sequences.
34
35 - fixed a bug with empty statements in macros.
36
37 - implemented a bytecode cache system.  (:ref:`bytecode-cache`)
38
39 - the template context is now weakref-able
40
41 - inclusions and imports "with context" forward all variables now, not only
42   the initial context.
43
44 - added a cycle helper called `cycler`.
45
46 - added a joining helper called `joiner`.
47
48 - added a `compile_expression` method to the environment that allows compiling
49   of Jinja expressions into callable Python objects.
50
51 - fixed an escaping bug in urlize
52
53 Version 2.0
54 -----------
55 (codename jinjavitus, released on July 17th 2008)
56
57 - the subscribing of objects (looking up attributes and items) changed from
58   slightly.  It's now possible to give attributes or items a higher priority
59   by either using dot-notation lookup or the bracket syntax.  This also
60   changed the AST slightly.  `Subscript` is gone and was replaced with
61   :class:`~jinja2.nodes.Getitem` and :class:`~jinja2.nodes.Getattr`.
62
63   For more information see :ref:`the implementation details <notes-on-subscriptions>`.
64
65 - added support for preprocessing and token stream filtering for extensions.
66   This would allow extensions to allow simplified gettext calls in template
67   data and something similar.
68
69 - added :meth:`jinja2.environment.TemplateStream.dump`.
70
71 - added missing support for implicit string literal concatenation.
72   ``{{ "foo" "bar" }}`` is equivalent to ``{{ "foobar" }}``
73
74 - `else` is optional for conditional expressions.  If not given it evaluates
75   to `false`.
76
77 - improved error reporting for undefined values by providing a position.
78
79 - `filesizeformat` filter uses decimal prefixes now per default and can be
80   set to binary mode with the second parameter.
81
82 - fixed bug in finalizer
83
84 Version 2.0rc1
85 --------------
86 (no codename, released on June 9th 2008)
87
88 - first release of Jinja2