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