Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 222 lines (146 sloc) 7.927 kb
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
1 Jinja Changelog
2 ===============
3
c689cf1 @mitsuhiko added entry for jinja 1.3 in CHANGES
authored
4 Version 1.3
5 -----------
6 (codename to be selected, release around February 2007)
7
a7804ef @mitsuhiko [svn] added "debugger of awesomeness" :D
authored
8 Version 1.2
9 -----------
825e522 @mitsuhiko some more doc changes in jinja for the upcoming release
authored
10 (codename to be hatsuyuki, released Nov 17th 2007)
11
12 .. admonition:: Backwards Incompatible Changes
13
14 - `call` is a keyword now
15 - the internal parser AST changed
16 - `extends` must be the first tag in a template
17 - the tuple literal yields tuples now, instead of lists.
a7804ef @mitsuhiko [svn] added "debugger of awesomeness" :D
authored
18
19 - environments now have a `translator_factory` parameter that allows
20 to change the translator without subclassing the environment.
21
22 - fixed bug in buffet plugin regarding the package loader
23
24 - once again improved debugger.
25
e39a5d2 @mitsuhiko [svn] added groupby filter and fixed some small bugs
authored
26 - added `groupby` filter.
27
69ddc58 @mitsuhiko [svn] added sameas test function
authored
28 - added `sameas` test function.
29
1cc232c @mitsuhiko [svn] merged newparser into trunk
authored
30 - standalone parser. Jinja does not use the python parser any more and will
31 continue having the same semantics in any future python versions. This
32 was done in order to simplify updating Jinja to 2.6 and 3.0 and to support
33 non python syntax.
34
35 - added support for ``expr1 if test else expr2`` (conditional expressions)
36
37 - ``foo.0`` as alias for ``foo[0]`` is possible now. This is mainly for
38 django compatibility.
39
40 - the filter operators has a much higher priority now which makes it
41 possible to do ``foo|filter + bar|filter``.
42
43 - new AST. the return value of `Environment.parse` is now a Jinja AST and not
44 a Jinja-Python AST. This is also the only backwards incompatible change but
45 should not affect many users because this feature is more or less
46 undocumented and has few use cases.
47
48 - tuple syntax returns tuples now and not lists any more.
49
50 - the print directive and ``{{ variable }}`` syntax now accepts and implicit
51 tuple like the `for` and `cycle` tags. (``{{ 1, 2 }}`` is an implicit alias
52 for ``{{ (1, 2) }}` like ``{% for a, b in seq %}`` is for
53 ``{% for (a, b) in seq %}``.
54
55 - tests called with *one* parameter don't need parentheses. This gives a more
56 natural syntax for the `sameas` test and some others:
57 ``{{ foo is sameas bar }}`` instead of ``{{ foo is sameas(bar) }}``. If you
58 however want to pass more than one argument you have to use parentheses
59 because ``{{ foo is sometest bar, baz }}`` is handled as
60 ``{{ (foo is sometest(bar), baz) }}``, so as tuple expression.
61
62 - removed support for octal character definitions in strings such as
63 ``'\14'``, use ``'\x0c'`` now.
64
65 - added regular expression literal. ``@/expr/flags`` equals
66 ``re.compile(r'(?flags)expr')``. This is useful for the `matching` test and
67 probably some others.
68
69 - added set literal. We do not use python3's {1, 2} syntax because
70 this conflicts with the dict literal. To be compatible with the regex
71 literal we use ``@(1, 2)`` instead.
72
73 - fixed bug in `get_attribute` that disallowed retreiving attributes of objects
74 without a `__class__` such as `_sre.SRE_Pattern`.
75
76 - addded `django.contrib.jinja` which provides advanced support for django.
77 (thanks Bryan McLemore)
78
79 - debugger is now able to rewrite the whole traceback, not only the first
80 frame. (requires the optional debugger c module which is compiled
81 automatically on installation if possible)
82
83 - if the set that is postfixed with a bang (!) it acts like the python 3
84 "nonlocal" keyword. This means that you can now override variables
85 defined in the outer scope from within a loop.
86
015b0c9 @mitsuhiko some documentation changes
authored
87 - ``foo ~ bar`` is now a simpler alternative to ``foo|string + bar|string``
1cc232c @mitsuhiko [svn] merged newparser into trunk
authored
88
89 - `PackageLoader` can now work without pkg_resources too
90
91 - added `getattribute` and `getitem` filter.
92
5f3f136 @mitsuhiko pp -> pretty
authored
93 - added support for the `pretty` library.
c6a3652 @mitsuhiko added pp info to changelog
authored
94
77e2ab5 @mitsuhiko documented change
authored
95 - changed the way the `MemcachedLoaderMixin` creates the class so that it's
96 possible to hook your own client in.
97
a7804ef @mitsuhiko [svn] added "debugger of awesomeness" :D
authored
98
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
99 Version 1.1
100 -----------
ecc051b @mitsuhiko [svn] added some more jinja unittests
authored
101 (codename: sinka, released Jun 1, 2007)
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
102
103 - blocks now support ``{{ super() }}`` to render the parent output.
104
105 - debugging system improved, smaller filesize for the cached files.
859efe0 @mitsuhiko [svn] added ugly, ugly, ugly even more ugly but working hack to jinja…
authored
106 Debugging works now well for any module using linecache.
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
107
90a5cb3 @mitsuhiko [svn] documented debug.foobar and added it to the CHANGES
authored
108 - ``{{ debug() }}`` can now be used to get a list of filters and
109 tags.
110
2158091 @mitsuhiko [svn] various updates i haven't checked in so far (see the diff of th…
authored
111 - the template lexer keeps not track of brace, parenthesis and
112 bracket balance in order to not break variable tags apart if they
113 are configured to look like this: ``${expr}``. This also fixes
114 the problem with nested dicts in variable expressions.
115
33d528a @mitsuhiko [svn] jinja can now handle variables and blocks with the same delimit…
authored
116 - it's now possible to configure the variable blocks to look the
117 same as the block delimiters. Thus you can set the syntax to something
118 like ``{ / }`` for both blocks and variables.
119
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
120 - added whitespace management system for the template designer.
121
122 - some small bugfixes.
123
ee2c18e @mitsuhiko [svn] added c implementation of the jinja context class.
authored
124 - improved security system regarding function calls and variable
125 assignment in for loops.
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
126
5a8e497 @mitsuhiko [svn] moved some of the documentation into docstrings
authored
127 - added `lipsum` function to generate random text.
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
128
129 - strings without unicode characters are processed as binary strings now
130 to workaround problems with `datetime.strftime` which only accepts
131 binary strings.
132
2158091 @mitsuhiko [svn] various updates i haven't checked in so far (see the diff of th…
authored
133 - it's now possible to use newlines in string literals
134
40cf47c @mitsuhiko [svn] some changes in jinja regarding silent and non silent failure, …
authored
135 - developer friendly traceback is now toggleable
136
fb5bebc @mitsuhiko [svn] many jinja changes:
authored
137 - the variable failure is now pluggable by replacing the undefined
138 singleton for an environment instance
40cf47c @mitsuhiko [svn] some changes in jinja regarding silent and non silent failure, …
authored
139
5a8e497 @mitsuhiko [svn] moved some of the documentation into docstrings
authored
140 - fixed issue with old-style classes not implementing `__getitem__`
141 (thanks to Axel Böhm for discovering that bug)
142
143 - added a bunch of new docstrings to the Jinja classes. Makes fun now to
144 use pydoc :-)
145
2acbac1 @mitsuhiko [svn] checked in changes from the last days regarding jinja, added ji…
authored
146 - fixed severe memcaching bug. Formerly it wasn't possible to use memcaching
147 without enabling disk cache.
148
d071f95 @mitsuhiko [svn] added `|batch` and `|slice` jinja filters
authored
149 - fixed a bug that allowed users to override the special names `_`, `true` etc.
150
eec3138 @mitsuhiko [svn] implemented some of the builtin functions as filters (namely su…
authored
151 - added `batch` and `slice` filters for batching or slicing sequences
152
9bcd411 @mitsuhiko [svn] again some jinja updates, some minor performance and doc improv…
authored
153 - added `sum`, `abs`, `round` and `sort` filters. This fixes #238
d071f95 @mitsuhiko [svn] added `|batch` and `|slice` jinja filters
authored
154
450756b @mitsuhiko [svn] added `xmlattr` filter to jinja
authored
155 - added `striptags` and `xmlattr` filters for easier SGML/XML processing
af31e4d @birkenfeld [svn] Add striptags filter.^
birkenfeld authored
156
2158091 @mitsuhiko [svn] various updates i haven't checked in so far (see the diff of th…
authored
157 - the trans tag does not need explicit naming for variables with the same
158 name any more. You can now use ``{% trans foo %}`` instead of the verbose
159 version ``{% trans foo=foo %}``.
160
161 - reimplemented Buffet plugin so that it works at least for pylons
162
163 - added `Environment.get_translations_for_string`
164
165 - fixed a bug in the parser that didn't unescape keyword arguments. (thanks
166 to Alexey Melchakov for reporting)
167
ee2c18e @mitsuhiko [svn] added c implementation of the jinja context class.
authored
168 - You can now use the environment to just tokenize a template. This can
169 be useful for syntax highlighting or other purposes.
170
fb5bebc @mitsuhiko [svn] many jinja changes:
authored
171 - added optional C-implementation of the context baseclass.
172
173 - you can now use optional parentheses around macro defintions. Thus it's
174 possible to write ``{% macro foo(a, b, c) %}`` instead of ``{% macro
175 foo a, b, c %}``.
176
177 - additional macro arguments now end up in `varargs`.
e98c5f5 @mitsuhiko [svn] updated documentation regarding "{% call %}" and documented spe…
authored
178
ccf284b @mitsuhiko [svn] added many new tests to jinja
authored
179 - implemented the `{% call %}` block. `call` and `endcall` can still be used
180 as identifiers until Jinja 1.3
e98c5f5 @mitsuhiko [svn] updated documentation regarding "{% call %}" and documented spe…
authored
181
2f43ba4 @mitsuhiko [svn] removed "release" shortcut in makefile
authored
182 - it's now possible to stream templates.
fb5bebc @mitsuhiko [svn] many jinja changes:
authored
183
4f41711 @mitsuhiko [svn] added a sanity check for block tags outside the root level
authored
184 - fixed a corner case when defining a block inside of a condition
185
ce513f2 @mitsuhiko [svn] fixed bug reported by stefan ebner and implemented cache_keys t…
authored
186 - the cached loader mixin is now able to cache multiple templates from
187 different loaders in the same cache folder.
188
189 - Translatable strings returned by ``_()`` will leave their string formatting
190 signs untouched. Thanks to Stefan Ebner for reporting.
191
4965987 @mitsuhiko [svn] added block shortcut syntax for jinja
authored
192 - ``{% block name "data" %}`` is now an alias for
193 ``{% block name %}data{% endblock %}``. Note that the second argument can
194 be an expression. As soon as you specify an expression as second argument
195 the closing tag has to be omitted.
196
6dba4d6 @mitsuhiko [svn] checked in changes regarding variable length iteration
authored
197 - It's now possible to iterate over iterators additionally to sequences.
198 If the iterator is inifite it will crash however, so makes sure you don't
199 pass something like that to a template!
200
9bcd411 @mitsuhiko [svn] again some jinja updates, some minor performance and doc improv…
authored
201 - added `rendetemplate` to render included templates in an isolated
202 environment and get the outout back.
203
204 - added `simplefilter` decorator.
205
63ca721 @mitsuhiko [svn] added changelog and thanks entry
authored
206 - improved ChoiceLoader error reporting (thanks to Bryan McLemore)
207
ecc051b @mitsuhiko [svn] added some more jinja unittests
authored
208 - fixed extended slicing
209
db69d0a @mitsuhiko [svn] added baseclasses for loaders, added the memcaching loader, upd…
authored
210 - reworked loader layer. All the cached loaders now have "private" non cached
211 baseclasses so that you can easily mix your own caching layers in.
212
213 - added `MemcachedLoaderMixin` and `MemcachedFileSystemLoader` contributed
214 by Bryan McLemore.
215
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
216
217 Version 1.0
218 -----------
ecc051b @mitsuhiko [svn] added some more jinja unittests
authored
219 (codename: siyutusan, released Mar 23, 2007)
a22a53d @mitsuhiko [svn] added jinja changelog and missing file jinja.constants
authored
220
221 - Initial release
Something went wrong with that request. Please try again.