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