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