comparison ChangeLog @ 714:fc6d9d2a3527 trunk

The `Template` class and its subclasses, as well as the interpolation API, now take an `filepath` parameter instead of `basedir`. Closes #207. Thanks to Waldemar Kornewald for the patch.
author cmlenz
date Tue, 08 Apr 2008 19:49:39 +0000
parents 5420fe9d99a9
children be0b4a7b2fd4
comparison
equal deleted inserted replaced
713:5420fe9d99a9 714:fc6d9d2a3527
54 * Match templates are now applied in a more controlled fashion: in the order 54 * Match templates are now applied in a more controlled fashion: in the order
55 they are declared in the template source, all match templates up to (and 55 they are declared in the template source, all match templates up to (and
56 including) the matching template itself are applied to the matched content, 56 including) the matching template itself are applied to the matched content,
57 whereas the match templates declared after the matching template are only 57 whereas the match templates declared after the matching template are only
58 applied to the generated content (ticket #186). 58 applied to the generated content (ticket #186).
59 * The `TemplateLoader` class now provides an `instantiate()` method that can 59 * The `TemplateLoader` class now provides an `_instantiate()` method that can
60 be overridden by subclasses to implement advanced template instantiation 60 be overridden by subclasses to implement advanced template instantiation
61 logic (ticket #204). 61 logic (ticket #204).
62 * The search path of the `TemplateLoader` class can now contain ''load 62 * The search path of the `TemplateLoader` class can now contain ''load
63 functions'' in addition to path strings. A load function is passed the 63 functions'' in addition to path strings. A load function is passed the
64 name of the requested template file, and should return a file-like object 64 name of the requested template file, and should return a file-like object
75 operator in the same way the Python string classes do, except that the 75 operator in the same way the Python string classes do, except that the
76 substituted values are escape. Also, the special constructor which took 76 substituted values are escape. Also, the special constructor which took
77 positional arguments that would be substituted was removed. Thus the 77 positional arguments that would be substituted was removed. Thus the
78 `Markup` class now supports the same arguments as that of its `unicode` 78 `Markup` class now supports the same arguments as that of its `unicode`
79 base class (ticket #211). 79 base class (ticket #211).
80 * The `Template` class and its subclasses, as well as the interpolation API,
81 now take an `filepath` parameter instead of `basedir` (ticket #207).
80 82
81 83
82 Version 0.4.4 84 Version 0.4.4
83 http://svn.edgewall.org/repos/genshi/tags/0.4.4/ 85 http://svn.edgewall.org/repos/genshi/tags/0.4.4/
84 (Aug 14, 2007, from branches/stable/0.4.x) 86 (Aug 14, 2007, from branches/stable/0.4.x)
Copyright (C) 2012-2017 Edgewall Software