blob: 8d90efb4a03958b30d60a2b92810b073a398a72b [file] [log] [blame]
Armin Ronachera22a53d2007-03-31 20:44:33 +02001Jinja Changelog
2===============
3
4Version 1.1
5-----------
6(codename to be selected, release date unknown)
7
8- blocks now support ``{{ super() }}`` to render the parent output.
9
10- debugging system improved, smaller filesize for the cached files.
Armin Ronacher859efe02007-04-05 22:38:44 +020011 Debugging works now well for any module using linecache.
Armin Ronachera22a53d2007-03-31 20:44:33 +020012
Armin Ronacher90a5cb32007-04-15 00:56:32 +020013- ``{{ debug() }}`` can now be used to get a list of filters and
14 tags.
15
Armin Ronacher21580912007-04-17 17:13:10 +020016- the template lexer keeps not track of brace, parenthesis and
17 bracket balance in order to not break variable tags apart if they
18 are configured to look like this: ``${expr}``. This also fixes
19 the problem with nested dicts in variable expressions.
20
Armin Ronacher33d528a2007-05-14 18:21:44 +020021- it's now possible to configure the variable blocks to look the
22 same as the block delimiters. Thus you can set the syntax to something
23 like ``{ / }`` for both blocks and variables.
24
Armin Ronachera22a53d2007-03-31 20:44:33 +020025- added whitespace management system for the template designer.
26
27- some small bugfixes.
28
Armin Ronacheree2c18e2007-04-20 22:39:04 +020029- improved security system regarding function calls and variable
30 assignment in for loops.
Armin Ronachera22a53d2007-03-31 20:44:33 +020031
Armin Ronacher5a8e4972007-04-05 11:21:38 +020032- added `lipsum` function to generate random text.
Armin Ronachera22a53d2007-03-31 20:44:33 +020033
34- strings without unicode characters are processed as binary strings now
35 to workaround problems with `datetime.strftime` which only accepts
36 binary strings.
37
Armin Ronacher21580912007-04-17 17:13:10 +020038- it's now possible to use newlines in string literals
39
Armin Ronacher40cf47c2007-04-04 13:50:09 +020040- developer friendly traceback is now toggleable
41
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020042- the variable failure is now pluggable by replacing the undefined
43 singleton for an environment instance
Armin Ronacher40cf47c2007-04-04 13:50:09 +020044
Armin Ronacher5a8e4972007-04-05 11:21:38 +020045- fixed issue with old-style classes not implementing `__getitem__`
46 (thanks to Axel Bรถhm for discovering that bug)
47
48- added a bunch of new docstrings to the Jinja classes. Makes fun now to
49 use pydoc :-)
50
Armin Ronacher2acbac12007-04-11 21:49:48 +020051- fixed severe memcaching bug. Formerly it wasn't possible to use memcaching
52 without enabling disk cache.
53
Armin Ronacherd071f952007-04-13 22:32:11 +020054- fixed a bug that allowed users to override the special names `_`, `true` etc.
55
Armin Ronachereec31382007-04-14 14:50:45 +020056- added `batch` and `slice` filters for batching or slicing sequences
57
Armin Ronacher9bcd4112007-05-29 14:17:24 +020058- added `sum`, `abs`, `round` and `sort` filters. This fixes #238
Armin Ronacherd071f952007-04-13 22:32:11 +020059
Armin Ronacher450756b2007-04-15 15:13:59 +020060- added `striptags` and `xmlattr` filters for easier SGML/XML processing
Georg Brandlaf31e4d2007-04-15 00:47:37 +020061
Armin Ronacher21580912007-04-17 17:13:10 +020062- the trans tag does not need explicit naming for variables with the same
63 name any more. You can now use ``{% trans foo %}`` instead of the verbose
64 version ``{% trans foo=foo %}``.
65
66- reimplemented Buffet plugin so that it works at least for pylons
67
68- added `Environment.get_translations_for_string`
69
70- fixed a bug in the parser that didn't unescape keyword arguments. (thanks
71 to Alexey Melchakov for reporting)
72
Armin Ronacheree2c18e2007-04-20 22:39:04 +020073- You can now use the environment to just tokenize a template. This can
74 be useful for syntax highlighting or other purposes.
75
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020076- added optional C-implementation of the context baseclass.
77
78- you can now use optional parentheses around macro defintions. Thus it's
79 possible to write ``{% macro foo(a, b, c) %}`` instead of ``{% macro
80 foo a, b, c %}``.
81
82- additional macro arguments now end up in `varargs`.
Armin Ronachere98c5f52007-04-21 09:39:06 +020083
Armin Ronacherccf284b2007-05-21 16:44:26 +020084- implemented the `{% call %}` block. `call` and `endcall` can still be used
85 as identifiers until Jinja 1.3
Armin Ronachere98c5f52007-04-21 09:39:06 +020086
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020087- it's not possible to stream templates.
88
Armin Ronacher4f417112007-04-28 23:23:44 +020089- fixed a corner case when defining a block inside of a condition
90
Armin Ronacherce513f22007-04-29 19:56:52 +020091- the cached loader mixin is now able to cache multiple templates from
92 different loaders in the same cache folder.
93
94- Translatable strings returned by ``_()`` will leave their string formatting
95 signs untouched. Thanks to Stefan Ebner for reporting.
96
Armin Ronacher49659872007-05-12 23:29:33 +020097- ``{% block name "data" %}`` is now an alias for
98 ``{% block name %}data{% endblock %}``. Note that the second argument can
99 be an expression. As soon as you specify an expression as second argument
100 the closing tag has to be omitted.
101
Armin Ronacher6dba4d62007-05-21 23:41:36 +0200102- It's now possible to iterate over iterators additionally to sequences.
103 If the iterator is inifite it will crash however, so makes sure you don't
104 pass something like that to a template!
105
Armin Ronacher9bcd4112007-05-29 14:17:24 +0200106- added `rendetemplate` to render included templates in an isolated
107 environment and get the outout back.
108
109- added `simplefilter` decorator.
110
Armin Ronacher63ca7212007-05-30 00:29:39 +0200111- improved ChoiceLoader error reporting (thanks to Bryan McLemore)
112
Armin Ronachera22a53d2007-03-31 20:44:33 +0200113
114Version 1.0
115-----------
116(released Mar 23, 2007)
117
118- Initial release