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