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