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