Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 1 | Jinja Changelog |
| 2 | =============== |
| 3 | |
Armin Ronacher | a7804ef | 2007-06-15 18:03:21 +0200 | [diff] [blame^] | 4 | Version 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 Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 16 | Version 1.1 |
| 17 | ----------- |
Armin Ronacher | ecc051b | 2007-06-01 18:25:28 +0200 | [diff] [blame] | 18 | (codename: sinka, released Jun 1, 2007) |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 19 | |
| 20 | - blocks now support ``{{ super() }}`` to render the parent output. |
| 21 | |
| 22 | - debugging system improved, smaller filesize for the cached files. |
Armin Ronacher | 859efe0 | 2007-04-05 22:38:44 +0200 | [diff] [blame] | 23 | Debugging works now well for any module using linecache. |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 24 | |
Armin Ronacher | 90a5cb3 | 2007-04-15 00:56:32 +0200 | [diff] [blame] | 25 | - ``{{ debug() }}`` can now be used to get a list of filters and |
| 26 | tags. |
| 27 | |
Armin Ronacher | 2158091 | 2007-04-17 17:13:10 +0200 | [diff] [blame] | 28 | - 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 Ronacher | 33d528a | 2007-05-14 18:21:44 +0200 | [diff] [blame] | 33 | - 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 Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 37 | - added whitespace management system for the template designer. |
| 38 | |
| 39 | - some small bugfixes. |
| 40 | |
Armin Ronacher | ee2c18e | 2007-04-20 22:39:04 +0200 | [diff] [blame] | 41 | - improved security system regarding function calls and variable |
| 42 | assignment in for loops. |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 43 | |
Armin Ronacher | 5a8e497 | 2007-04-05 11:21:38 +0200 | [diff] [blame] | 44 | - added `lipsum` function to generate random text. |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 45 | |
| 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 Ronacher | 2158091 | 2007-04-17 17:13:10 +0200 | [diff] [blame] | 50 | - it's now possible to use newlines in string literals |
| 51 | |
Armin Ronacher | 40cf47c | 2007-04-04 13:50:09 +0200 | [diff] [blame] | 52 | - developer friendly traceback is now toggleable |
| 53 | |
Armin Ronacher | fb5bebc | 2007-04-27 18:24:19 +0200 | [diff] [blame] | 54 | - the variable failure is now pluggable by replacing the undefined |
| 55 | singleton for an environment instance |
Armin Ronacher | 40cf47c | 2007-04-04 13:50:09 +0200 | [diff] [blame] | 56 | |
Armin Ronacher | 5a8e497 | 2007-04-05 11:21:38 +0200 | [diff] [blame] | 57 | - 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 Ronacher | 2acbac1 | 2007-04-11 21:49:48 +0200 | [diff] [blame] | 63 | - fixed severe memcaching bug. Formerly it wasn't possible to use memcaching |
| 64 | without enabling disk cache. |
| 65 | |
Armin Ronacher | d071f95 | 2007-04-13 22:32:11 +0200 | [diff] [blame] | 66 | - fixed a bug that allowed users to override the special names `_`, `true` etc. |
| 67 | |
Armin Ronacher | eec3138 | 2007-04-14 14:50:45 +0200 | [diff] [blame] | 68 | - added `batch` and `slice` filters for batching or slicing sequences |
| 69 | |
Armin Ronacher | 9bcd411 | 2007-05-29 14:17:24 +0200 | [diff] [blame] | 70 | - added `sum`, `abs`, `round` and `sort` filters. This fixes #238 |
Armin Ronacher | d071f95 | 2007-04-13 22:32:11 +0200 | [diff] [blame] | 71 | |
Armin Ronacher | 450756b | 2007-04-15 15:13:59 +0200 | [diff] [blame] | 72 | - added `striptags` and `xmlattr` filters for easier SGML/XML processing |
Georg Brandl | af31e4d | 2007-04-15 00:47:37 +0200 | [diff] [blame] | 73 | |
Armin Ronacher | 2158091 | 2007-04-17 17:13:10 +0200 | [diff] [blame] | 74 | - 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 Ronacher | ee2c18e | 2007-04-20 22:39:04 +0200 | [diff] [blame] | 85 | - You can now use the environment to just tokenize a template. This can |
| 86 | be useful for syntax highlighting or other purposes. |
| 87 | |
Armin Ronacher | fb5bebc | 2007-04-27 18:24:19 +0200 | [diff] [blame] | 88 | - 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 Ronacher | e98c5f5 | 2007-04-21 09:39:06 +0200 | [diff] [blame] | 95 | |
Armin Ronacher | ccf284b | 2007-05-21 16:44:26 +0200 | [diff] [blame] | 96 | - implemented the `{% call %}` block. `call` and `endcall` can still be used |
| 97 | as identifiers until Jinja 1.3 |
Armin Ronacher | e98c5f5 | 2007-04-21 09:39:06 +0200 | [diff] [blame] | 98 | |
Armin Ronacher | 2f43ba4 | 2007-06-02 14:11:35 +0200 | [diff] [blame] | 99 | - it's now possible to stream templates. |
Armin Ronacher | fb5bebc | 2007-04-27 18:24:19 +0200 | [diff] [blame] | 100 | |
Armin Ronacher | 4f41711 | 2007-04-28 23:23:44 +0200 | [diff] [blame] | 101 | - fixed a corner case when defining a block inside of a condition |
| 102 | |
Armin Ronacher | ce513f2 | 2007-04-29 19:56:52 +0200 | [diff] [blame] | 103 | - 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 Ronacher | 4965987 | 2007-05-12 23:29:33 +0200 | [diff] [blame] | 109 | - ``{% 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 Ronacher | 6dba4d6 | 2007-05-21 23:41:36 +0200 | [diff] [blame] | 114 | - 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 Ronacher | 9bcd411 | 2007-05-29 14:17:24 +0200 | [diff] [blame] | 118 | - added `rendetemplate` to render included templates in an isolated |
| 119 | environment and get the outout back. |
| 120 | |
| 121 | - added `simplefilter` decorator. |
| 122 | |
Armin Ronacher | 63ca721 | 2007-05-30 00:29:39 +0200 | [diff] [blame] | 123 | - improved ChoiceLoader error reporting (thanks to Bryan McLemore) |
| 124 | |
Armin Ronacher | ecc051b | 2007-06-01 18:25:28 +0200 | [diff] [blame] | 125 | - fixed extended slicing |
| 126 | |
Armin Ronacher | db69d0a | 2007-06-02 01:35:53 +0200 | [diff] [blame] | 127 | - 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 Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 133 | |
| 134 | Version 1.0 |
| 135 | ----------- |
Armin Ronacher | ecc051b | 2007-06-01 18:25:28 +0200 | [diff] [blame] | 136 | (codename: siyutusan, released Mar 23, 2007) |
Armin Ronacher | a22a53d | 2007-03-31 20:44:33 +0200 | [diff] [blame] | 137 | |
| 138 | - Initial release |