blob: 6bf0278d39440bf5d40f92a7909da057a331019c [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
Armin Ronachere39a5d22007-06-23 21:11:53 +020015- added `groupby` filter.
16
Armin Ronachera7804ef2007-06-15 18:03:21 +020017
Armin Ronachera22a53d2007-03-31 20:44:33 +020018Version 1.1
19-----------
Armin Ronacherecc051b2007-06-01 18:25:28 +020020(codename: sinka, released Jun 1, 2007)
Armin Ronachera22a53d2007-03-31 20:44:33 +020021
22- blocks now support ``{{ super() }}`` to render the parent output.
23
24- debugging system improved, smaller filesize for the cached files.
Armin Ronacher859efe02007-04-05 22:38:44 +020025 Debugging works now well for any module using linecache.
Armin Ronachera22a53d2007-03-31 20:44:33 +020026
Armin Ronacher90a5cb32007-04-15 00:56:32 +020027- ``{{ debug() }}`` can now be used to get a list of filters and
28 tags.
29
Armin Ronacher21580912007-04-17 17:13:10 +020030- the template lexer keeps not track of brace, parenthesis and
31 bracket balance in order to not break variable tags apart if they
32 are configured to look like this: ``${expr}``. This also fixes
33 the problem with nested dicts in variable expressions.
34
Armin Ronacher33d528a2007-05-14 18:21:44 +020035- it's now possible to configure the variable blocks to look the
36 same as the block delimiters. Thus you can set the syntax to something
37 like ``{ / }`` for both blocks and variables.
38
Armin Ronachera22a53d2007-03-31 20:44:33 +020039- added whitespace management system for the template designer.
40
41- some small bugfixes.
42
Armin Ronacheree2c18e2007-04-20 22:39:04 +020043- improved security system regarding function calls and variable
44 assignment in for loops.
Armin Ronachera22a53d2007-03-31 20:44:33 +020045
Armin Ronacher5a8e4972007-04-05 11:21:38 +020046- added `lipsum` function to generate random text.
Armin Ronachera22a53d2007-03-31 20:44:33 +020047
48- strings without unicode characters are processed as binary strings now
49 to workaround problems with `datetime.strftime` which only accepts
50 binary strings.
51
Armin Ronacher21580912007-04-17 17:13:10 +020052- it's now possible to use newlines in string literals
53
Armin Ronacher40cf47c2007-04-04 13:50:09 +020054- developer friendly traceback is now toggleable
55
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020056- the variable failure is now pluggable by replacing the undefined
57 singleton for an environment instance
Armin Ronacher40cf47c2007-04-04 13:50:09 +020058
Armin Ronacher5a8e4972007-04-05 11:21:38 +020059- fixed issue with old-style classes not implementing `__getitem__`
60 (thanks to Axel Bรถhm for discovering that bug)
61
62- added a bunch of new docstrings to the Jinja classes. Makes fun now to
63 use pydoc :-)
64
Armin Ronacher2acbac12007-04-11 21:49:48 +020065- fixed severe memcaching bug. Formerly it wasn't possible to use memcaching
66 without enabling disk cache.
67
Armin Ronacherd071f952007-04-13 22:32:11 +020068- fixed a bug that allowed users to override the special names `_`, `true` etc.
69
Armin Ronachereec31382007-04-14 14:50:45 +020070- added `batch` and `slice` filters for batching or slicing sequences
71
Armin Ronacher9bcd4112007-05-29 14:17:24 +020072- added `sum`, `abs`, `round` and `sort` filters. This fixes #238
Armin Ronacherd071f952007-04-13 22:32:11 +020073
Armin Ronacher450756b2007-04-15 15:13:59 +020074- added `striptags` and `xmlattr` filters for easier SGML/XML processing
Georg Brandlaf31e4d2007-04-15 00:47:37 +020075
Armin Ronacher21580912007-04-17 17:13:10 +020076- the trans tag does not need explicit naming for variables with the same
77 name any more. You can now use ``{% trans foo %}`` instead of the verbose
78 version ``{% trans foo=foo %}``.
79
80- reimplemented Buffet plugin so that it works at least for pylons
81
82- added `Environment.get_translations_for_string`
83
84- fixed a bug in the parser that didn't unescape keyword arguments. (thanks
85 to Alexey Melchakov for reporting)
86
Armin Ronacheree2c18e2007-04-20 22:39:04 +020087- You can now use the environment to just tokenize a template. This can
88 be useful for syntax highlighting or other purposes.
89
Armin Ronacherfb5bebc2007-04-27 18:24:19 +020090- added optional C-implementation of the context baseclass.
91
92- you can now use optional parentheses around macro defintions. Thus it's
93 possible to write ``{% macro foo(a, b, c) %}`` instead of ``{% macro
94 foo a, b, c %}``.
95
96- additional macro arguments now end up in `varargs`.
Armin Ronachere98c5f52007-04-21 09:39:06 +020097
Armin Ronacherccf284b2007-05-21 16:44:26 +020098- implemented the `{% call %}` block. `call` and `endcall` can still be used
99 as identifiers until Jinja 1.3
Armin Ronachere98c5f52007-04-21 09:39:06 +0200100
Armin Ronacher2f43ba42007-06-02 14:11:35 +0200101- it's now possible to stream templates.
Armin Ronacherfb5bebc2007-04-27 18:24:19 +0200102
Armin Ronacher4f417112007-04-28 23:23:44 +0200103- fixed a corner case when defining a block inside of a condition
104
Armin Ronacherce513f22007-04-29 19:56:52 +0200105- the cached loader mixin is now able to cache multiple templates from
106 different loaders in the same cache folder.
107
108- Translatable strings returned by ``_()`` will leave their string formatting
109 signs untouched. Thanks to Stefan Ebner for reporting.
110
Armin Ronacher49659872007-05-12 23:29:33 +0200111- ``{% block name "data" %}`` is now an alias for
112 ``{% block name %}data{% endblock %}``. Note that the second argument can
113 be an expression. As soon as you specify an expression as second argument
114 the closing tag has to be omitted.
115
Armin Ronacher6dba4d62007-05-21 23:41:36 +0200116- It's now possible to iterate over iterators additionally to sequences.
117 If the iterator is inifite it will crash however, so makes sure you don't
118 pass something like that to a template!
119
Armin Ronacher9bcd4112007-05-29 14:17:24 +0200120- added `rendetemplate` to render included templates in an isolated
121 environment and get the outout back.
122
123- added `simplefilter` decorator.
124
Armin Ronacher63ca7212007-05-30 00:29:39 +0200125- improved ChoiceLoader error reporting (thanks to Bryan McLemore)
126
Armin Ronacherecc051b2007-06-01 18:25:28 +0200127- fixed extended slicing
128
Armin Ronacherdb69d0a2007-06-02 01:35:53 +0200129- reworked loader layer. All the cached loaders now have "private" non cached
130 baseclasses so that you can easily mix your own caching layers in.
131
132- added `MemcachedLoaderMixin` and `MemcachedFileSystemLoader` contributed
133 by Bryan McLemore.
134
Armin Ronachera22a53d2007-03-31 20:44:33 +0200135
136Version 1.0
137-----------
Armin Ronacherecc051b2007-06-01 18:25:28 +0200138(codename: siyutusan, released Mar 23, 2007)
Armin Ronachera22a53d2007-03-31 20:44:33 +0200139
140- Initial release