Mercurial > genshi > genshi-test
comparison doc/upgrade.txt @ 714:7e6496bde18a
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 | a58a50e89d04 |
children | f9544a7cc57a |
comparison
equal
deleted
inserted
replaced
713:a58a50e89d04 | 714:7e6496bde18a |
---|---|
68 | 68 |
69 .. code-block:: python | 69 .. code-block:: python |
70 | 70 |
71 Markup('<b>%s</b>') % name | 71 Markup('<b>%s</b>') % name |
72 | 72 |
73 ``Template`` Constructor | |
74 ------------------------ | |
75 | |
76 The constructor of the ``Template`` class and its subclasses has changed | |
77 slightly: instead of the optional ``basedir`` parameter, it now expects | |
78 an (also optional) ``filepath`` parameter, which specifies the absolute | |
79 path to the template. You probably aren't using those constructors | |
80 directly, anyway, but using the ``TemplateLoader`` API instead. | |
81 | |
73 | 82 |
74 ------------------------------------ | 83 ------------------------------------ |
75 Upgrading from Genshi 0.3.x to 0.4.x | 84 Upgrading from Genshi 0.3.x to 0.4.x |
76 ------------------------------------ | 85 ------------------------------------ |
77 | 86 |