blob: fca9a188db3182a1d2c59327f55d58061efebdcf [file] [log] [blame]
Armin Ronachera22a53d2007-03-31 20:44:33 +02001Jinja Changelog
2===============
3
Armin Ronachera7804ef2007-06-15 18:03:21 +02004Version 1.2
5-----------
6(codename to be selected, release date unknown)
7
8- environments now have a `translator_factory` parameter that allows
9 to change the translator without subclassing the environment.
10
11- fixed bug in buffet plugin regarding the package loader
12
13- once again improved debugger.
14
15
Armin Ronachera22a53d2007-03-31 20:44:33 +020016Version 1.1
17-----------
Armin Ronacherecc051b2007-06-01 18:25:28 +020018(codename: sinka, released Jun 1, 2007)
Armin Ronachera22a53d2007-03-31 20:44:33 +020019
20- blocks now support ``{{ super() }}`` to render the parent output.
21
22- debugging system improved, smaller filesize for the cached files.
Armin Ronacher859efe02007-04-05 22:38:44 +020023 Debugging works now well for any module using linecache.
Armin Ronachera22a53d2007-03-31 20:44:33 +020024
Armin Ronacher90a5cb32007-04-15 00:56:32 +020025- ``{{ debug() }}`` can now be used to get a list of filters and
26 tags.
27
Armin Ronacher21580912007-04-17 17:13:10 +020028- the template lexer keeps not track of brace, parenthesis and
29 bracket balance in order to not break variable tags apart if they
30 are configured to look like this: ``${expr}``. This also fixes
31 the problem with nested dicts in variable expressions.
32
Armin Ronacher33d528a2007-05-14 18:21:44 +020033- it's now possible to configure the variable blocks to look the
34 same as the block delimiters. Thus you can set the syntax to something
35 like ``{ / }`` for both blocks and variables.
36
Armin Ronachera22a53d2007-03-31 20:44:33 +020037- added whitespace management system for the template designer.
38
39- some small bugfixes.
40
Armin Ronacheree2c18e2007-04-20 22:39:04 +020041- improved security system regarding function calls and variable
42 assignment in for loops.
Armin Ronachera22a53d2007-03-31 20:44:33 +020043
Armin Ronacher5a8e4972007-04-05 11:21:38 +020044- added `lipsum` function to generate random text.
Armin Ronachera22a53d2007-03-31 20:44:33 +020045
46- strings without unicode characters are processed as binary strings now
47 to workaround problems with `datetime.strftime` which only accepts
48 binary strings.
49
Armin Ronacher21580912007-04-17 17:13:10 +020050- it's now possible to use newlines in string literals
51
Armin Ronacher40cf47c2007-04-04 13:50:09 +020052- developer friendly traceback is now toggleable
53
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020054- the variable failure is now pluggable by replacing the undefined
55 singleton for an environment instance
Armin Ronacher40cf47c2007-04-04 13:50:09 +020056
Armin Ronacher5a8e4972007-04-05 11:21:38 +020057- fixed issue with old-style classes not implementing `__getitem__`
58 (thanks to Axel Bรถhm for discovering that bug)
59
60- added a bunch of new docstrings to the Jinja classes. Makes fun now to
61 use pydoc :-)
62
Armin Ronacher2acbac12007-04-11 21:49:48 +020063- fixed severe memcaching bug. Formerly it wasn't possible to use memcaching
64 without enabling disk cache.
65
Armin Ronacherd071f952007-04-13 22:32:11 +020066- fixed a bug that allowed users to override the special names `_`, `true` etc.
67
Armin Ronachereec31382007-04-14 14:50:45 +020068- added `batch` and `slice` filters for batching or slicing sequences
69
Armin Ronacher9bcd4112007-05-29 14:17:24 +020070- added `sum`, `abs`, `round` and `sort` filters. This fixes #238
Armin Ronacherd071f952007-04-13 22:32:11 +020071
Armin Ronacher450756b2007-04-15 15:13:59 +020072- added `striptags` and `xmlattr` filters for easier SGML/XML processing
Georg Brandlaf31e4d2007-04-15 00:47:37 +020073
Armin Ronacher21580912007-04-17 17:13:10 +020074- the trans tag does not need explicit naming for variables with the same
75 name any more. You can now use ``{% trans foo %}`` instead of the verbose
76 version ``{% trans foo=foo %}``.
77
78- reimplemented Buffet plugin so that it works at least for pylons
79
80- added `Environment.get_translations_for_string`
81
82- fixed a bug in the parser that didn't unescape keyword arguments. (thanks
83 to Alexey Melchakov for reporting)
84
Armin Ronacheree2c18e2007-04-20 22:39:04 +020085- You can now use the environment to just tokenize a template. This can
86 be useful for syntax highlighting or other purposes.
87
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020088- added optional C-implementation of the context baseclass.
89
90- you can now use optional parentheses around macro defintions. Thus it's
91 possible to write ``{% macro foo(a, b, c) %}`` instead of ``{% macro
92 foo a, b, c %}``.
93
94- additional macro arguments now end up in `varargs`.
Armin Ronachere98c5f52007-04-21 09:39:06 +020095
Armin Ronacherccf284b2007-05-21 16:44:26 +020096- implemented the `{% call %}` block. `call` and `endcall` can still be used
97 as identifiers until Jinja 1.3
Armin Ronachere98c5f52007-04-21 09:39:06 +020098
Armin Ronacher2f43ba42007-06-02 14:11:35 +020099- it's now possible to stream templates.
Armin Ronacherfb5bebc2007-04-27 18:24:19 +0200100
Armin Ronacher4f417112007-04-28 23:23:44 +0200101- fixed a corner case when defining a block inside of a condition
102
Armin Ronacherce513f22007-04-29 19:56:52 +0200103- the cached loader mixin is now able to cache multiple templates from
104 different loaders in the same cache folder.
105
106- Translatable strings returned by ``_()`` will leave their string formatting
107 signs untouched. Thanks to Stefan Ebner for reporting.
108
Armin Ronacher49659872007-05-12 23:29:33 +0200109- ``{% block name "data" %}`` is now an alias for
110 ``{% block name %}data{% endblock %}``. Note that the second argument can
111 be an expression. As soon as you specify an expression as second argument
112 the closing tag has to be omitted.
113
Armin Ronacher6dba4d62007-05-21 23:41:36 +0200114- It's now possible to iterate over iterators additionally to sequences.
115 If the iterator is inifite it will crash however, so makes sure you don't
116 pass something like that to a template!
117
Armin Ronacher9bcd4112007-05-29 14:17:24 +0200118- added `rendetemplate` to render included templates in an isolated
119 environment and get the outout back.
120
121- added `simplefilter` decorator.
122
Armin Ronacher63ca7212007-05-30 00:29:39 +0200123- improved ChoiceLoader error reporting (thanks to Bryan McLemore)
124
Armin Ronacherecc051b2007-06-01 18:25:28 +0200125- fixed extended slicing
126
Armin Ronacherdb69d0a2007-06-02 01:35:53 +0200127- reworked loader layer. All the cached loaders now have "private" non cached
128 baseclasses so that you can easily mix your own caching layers in.
129
130- added `MemcachedLoaderMixin` and `MemcachedFileSystemLoader` contributed
131 by Bryan McLemore.
132
Armin Ronachera22a53d2007-03-31 20:44:33 +0200133
134Version 1.0
135-----------
Armin Ronacherecc051b2007-06-01 18:25:28 +0200136(codename: siyutusan, released Mar 23, 2007)
Armin Ronachera22a53d2007-03-31 20:44:33 +0200137
138- Initial release