Added changelog
[jinja2.git] / CHANGES
1 Jinja2 Changelog
2 ================
3
4 Version 2.3.1
5 -------------
6 (bugfix release, released on February 19th 2010)
7
8 - fixed an error reporting bug on all python versions
9 - fixed an error reporting bug on Python 2.4
10
11 Version 2.3
12 -----------
13 (3000 Pythons, released on February 10th 2010)
14
15 - fixes issue with code generator that causes unbound variables
16   to be generated if set was used in if-blocks and other small
17   identifier problems.
18 - include tags are now able to select between multiple templates
19   and take the first that exists, if a list of templates is
20   given.
21 - fixed a problem with having call blocks in outer scopes that
22   have an argument that is also used as local variable in an
23   inner frame (#360).
24 - greatly improved error message reporting (#339)
25 - implicit tuple expressions can no longer be totally empty.
26   This change makes ``{% if %}...{% endif %}`` a syntax error
27   now. (#364)
28 - added support for translator comments if extracted via babel.
29 - added with-statement extension.
30 - experimental Python 3 support.
31
32 Version 2.2.1
33 -------------
34 (bugfix release, released on September 14th 2009)
35
36 - fixes some smaller problems for Jinja2 on Jython.
37
38 Version 2.2
39 -----------
40 (codename Kong, released on September 13th 2009)
41
42 - Include statements can now be marked with ``ignore missing`` to skip
43   non existing templates.
44 - Priority of `not` raised.  It's now possible to write `not foo in bar`
45   as an alias to `foo not in bar` like in python.  Previously the grammar
46   required parentheses (`not (foo in bar)`) which was odd.
47 - Fixed a bug that caused syntax errors when defining macros or using the
48   `{% call %}` tag inside loops.
49 - Fixed a bug in the parser that made ``{{ foo[1, 2] }}`` impossible.
50 - Made it possible to refer to names from outer scopes in included templates
51   that were unused in the callers frame (#327)
52 - Fixed a bug that caused internal errors if names where used as iteration
53   variable and regular variable *after* the loop if that variable was unused
54   *before* the loop.  (#331)
55 - Added support for optional `scoped` modifier to blocks.
56 - Added support for line-comments.
57 - Added the `meta` module.
58 - Renamed (undocumented) attribute "overlay" to "overlayed" on the
59   environment because it was clashing with a method of the same name.
60 - speedup extension is now disabled by default.
61
62 Version 2.1.1
63 -------------
64 (Bugfix release)
65
66 - Fixed a translation error caused by looping over empty recursive loops.
67
68 Version 2.1
69 -----------
70 (codename Yasuzō, released on November 23rd 2008)
71
72 - fixed a bug with nested loops and the special loop variable.  Before the
73   change an inner loop overwrote the loop variable from the outer one after
74   iteration.
75
76 - fixed a bug with the i18n extension that caused the explicit pluralization
77   block to look up the wrong variable.
78
79 - fixed a limitation in the lexer that made ``{{ foo.0.0 }}`` impossible.
80
81 - index based subscribing of variables with a constant value returns an
82   undefined object now instead of raising an index error.  This was a bug
83   caused by eager optimizing.
84
85 - the i18n extension looks up `foo.ugettext` now followed by `foo.gettext`
86   if an translations object is installed.  This makes dealing with custom
87   translations classes easier.
88
89 - fixed a confusing behavior with conditional extending.  loops were partially
90   executed under some conditions even though they were not part of a visible
91   area.
92
93 - added `sort` filter that works like `dictsort` but for arbitrary sequences.
94
95 - fixed a bug with empty statements in macros.
96
97 - implemented a bytecode cache system.  (:ref:`bytecode-cache`)
98
99 - the template context is now weakref-able
100
101 - inclusions and imports "with context" forward all variables now, not only
102   the initial context.
103
104 - added a cycle helper called `cycler`.
105
106 - added a joining helper called `joiner`.
107
108 - added a `compile_expression` method to the environment that allows compiling
109   of Jinja expressions into callable Python objects.
110
111 - fixed an escaping bug in urlize
112
113 Version 2.0
114 -----------
115 (codename jinjavitus, released on July 17th 2008)
116
117 - the subscribing of objects (looking up attributes and items) changed from
118   slightly.  It's now possible to give attributes or items a higher priority
119   by either using dot-notation lookup or the bracket syntax.  This also
120   changed the AST slightly.  `Subscript` is gone and was replaced with
121   :class:`~jinja2.nodes.Getitem` and :class:`~jinja2.nodes.Getattr`.
122
123   For more information see :ref:`the implementation details <notes-on-subscriptions>`.
124
125 - added support for preprocessing and token stream filtering for extensions.
126   This would allow extensions to allow simplified gettext calls in template
127   data and something similar.
128
129 - added :meth:`jinja2.environment.TemplateStream.dump`.
130
131 - added missing support for implicit string literal concatenation.
132   ``{{ "foo" "bar" }}`` is equivalent to ``{{ "foobar" }}``
133
134 - `else` is optional for conditional expressions.  If not given it evaluates
135   to `false`.
136
137 - improved error reporting for undefined values by providing a position.
138
139 - `filesizeformat` filter uses decimal prefixes now per default and can be
140   set to binary mode with the second parameter.
141
142 - fixed bug in finalizer
143
144 Version 2.0rc1
145 --------------
146 (no codename, released on June 9th 2008)
147
148 - first release of Jinja2