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