[svn] added some more jinja unittests
[jinja2.git] / CHANGES
1 Jinja Changelog
2 ===============
3
4 Version 1.1
5 -----------
6 (codename: sinka, released Jun 1, 2007)
7
8 - blocks now support ``{{ super() }}`` to render the parent output.
9
10 - debugging system improved, smaller filesize for the cached files.
11   Debugging works now well for any module using linecache.
12
13 - ``{{ debug() }}`` can now be used to get a list of filters and
14   tags.
15
16 - 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
21 - 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
25 - added whitespace management system for the template designer.
26
27 - some small bugfixes.
28
29 - improved security system regarding function calls and variable
30   assignment in for loops.
31
32 - added `lipsum` function to generate random text.
33
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
38 - it's now possible to use newlines in string literals
39
40 - developer friendly traceback is now toggleable
41
42 - the variable failure is now pluggable by replacing the undefined
43   singleton for an environment instance
44
45 - 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
51 - fixed severe memcaching bug. Formerly it wasn't possible to use memcaching
52   without enabling disk cache.
53
54 - fixed a bug that allowed users to override the special names `_`, `true` etc.
55
56 - added `batch` and `slice` filters for batching or slicing sequences
57
58 - added `sum`, `abs`, `round` and `sort` filters. This fixes #238
59
60 - added `striptags` and `xmlattr` filters for easier SGML/XML processing
61
62 - 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
73 - You can now use the environment to just tokenize a template. This can
74   be useful for syntax highlighting or other purposes.
75
76 - 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`.
83
84 - implemented the `{% call %}` block. `call` and `endcall` can still be used
85   as identifiers until Jinja 1.3
86
87 - it's not possible to stream templates.
88
89 - fixed a corner case when defining a block inside of a condition
90
91 - 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
97 - ``{% 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
102 - 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
106 - added `rendetemplate` to render included templates in an isolated
107   environment and get the outout back.
108
109 - added `simplefilter` decorator.
110
111 - improved ChoiceLoader error reporting (thanks to Bryan McLemore)
112
113 - fixed extended slicing
114
115
116 Version 1.0
117 -----------
118 (codename: siyutusan, released Mar 23, 2007)
119
120 - Initial release