Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 1 | Jinja Changelog |
| 2 | =============== |
| 3 | |
| 4 | Version 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 Ronacher | 859efe0 | 2007-04-05 22:38:44 +0200 | [diff] [blame] | 11 | Debugging works now well for any module using linecache. |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 12 | |
Armin Ronacher | 90a5cb3 | 2007-04-15 00:56:32 +0200 | [diff] [blame] | 13 | - ``{{ debug() }}`` can now be used to get a list of filters and |
| 14 | tags. |
| 15 | |
Armin Ronacher | 2158091 | 2007-04-17 17:13:10 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | 33d528a | 2007-05-14 18:21:44 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 25 | - added whitespace management system for the template designer. |
| 26 | |
| 27 | - some small bugfixes. |
| 28 | |
Armin Ronacher | ee2c18e | 2007-04-20 22:39:04 +0200 | [diff] [blame] | 29 | - improved security system regarding function calls and variable |
| 30 | assignment in for loops. |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 31 | |
Armin Ronacher | 5a8e497 | 2007-04-05 11:21:38 +0200 | [diff] [blame] | 32 | - added `lipsum` function to generate random text. |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | 2158091 | 2007-04-17 17:13:10 +0200 | [diff] [blame] | 38 | - it's now possible to use newlines in string literals |
| 39 | |
Armin Ronacher | 40cf47c | 2007-04-04 13:50:09 +0200 | [diff] [blame] | 40 | - developer friendly traceback is now toggleable |
| 41 | |
Armin Ronacher | fb5bebc | 2007-04-27 18:24:19 +0200 | [diff] [blame] | 42 | - the variable failure is now pluggable by replacing the undefined |
| 43 | singleton for an environment instance |
Armin Ronacher | 40cf47c | 2007-04-04 13:50:09 +0200 | [diff] [blame] | 44 | |
Armin Ronacher | 5a8e497 | 2007-04-05 11:21:38 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | 2acbac1 | 2007-04-11 21:49:48 +0200 | [diff] [blame] | 51 | - fixed severe memcaching bug. Formerly it wasn't possible to use memcaching |
| 52 | without enabling disk cache. |
| 53 | |
Armin Ronacher | d071f95 | 2007-04-13 22:32:11 +0200 | [diff] [blame] | 54 | - fixed a bug that allowed users to override the special names `_`, `true` etc. |
| 55 | |
Armin Ronacher | eec3138 | 2007-04-14 14:50:45 +0200 | [diff] [blame] | 56 | - added `batch` and `slice` filters for batching or slicing sequences |
| 57 | |
| 58 | - added `sum`, `abs` and `round` filters. This fixes #238 |
Armin Ronacher | d071f95 | 2007-04-13 22:32:11 +0200 | [diff] [blame] | 59 | |
Armin Ronacher | 450756b | 2007-04-15 15:13:59 +0200 | [diff] [blame] | 60 | - added `striptags` and `xmlattr` filters for easier SGML/XML processing |
Georg Brandl | af31e4d | 2007-04-15 00:47:37 +0200 | [diff] [blame] | 61 | |
Armin Ronacher | 2158091 | 2007-04-17 17:13:10 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | ee2c18e | 2007-04-20 22:39:04 +0200 | [diff] [blame] | 73 | - You can now use the environment to just tokenize a template. This can |
| 74 | be useful for syntax highlighting or other purposes. |
| 75 | |
Armin Ronacher | fb5bebc | 2007-04-27 18:24:19 +0200 | [diff] [blame] | 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`. |
Armin Ronacher | e98c5f5 | 2007-04-21 09:39:06 +0200 | [diff] [blame] | 83 | |
Armin Ronacher | ccf284b | 2007-05-21 16:44:26 +0200 | [diff] [blame] | 84 | - implemented the `{% call %}` block. `call` and `endcall` can still be used |
| 85 | as identifiers until Jinja 1.3 |
Armin Ronacher | e98c5f5 | 2007-04-21 09:39:06 +0200 | [diff] [blame] | 86 | |
Armin Ronacher | fb5bebc | 2007-04-27 18:24:19 +0200 | [diff] [blame] | 87 | - it's not possible to stream templates. |
| 88 | |
Armin Ronacher | 4f41711 | 2007-04-28 23:23:44 +0200 | [diff] [blame] | 89 | - fixed a corner case when defining a block inside of a condition |
| 90 | |
Armin Ronacher | ce513f2 | 2007-04-29 19:56:52 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | 4965987 | 2007-05-12 23:29:33 +0200 | [diff] [blame] | 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 | |
Armin Ronacher | 6dba4d6 | 2007-05-21 23:41:36 +0200 | [diff] [blame^] | 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 | |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 106 | |
| 107 | Version 1.0 |
| 108 | ----------- |
| 109 | (released Mar 23, 2007) |
| 110 | |
| 111 | - Initial release |