Mercurial > genshi > genshi-test
diff ChangeLog @ 696:87b8e23610d4
More flexible template loader allowing for loading from package data and dispatching to different template directories based on path prefix. Can be easily extended for using custom template loading. Closes #182.
author | cmlenz |
---|---|
date | Wed, 26 Mar 2008 22:49:23 +0000 |
parents | 3d11d6b1d3d4 |
children | 8d079cee6822 |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -59,6 +59,12 @@ * The `TemplateLoader` class now provides an `instantiate()` method that can be overridden by subclasses to implement advanced template instantiation logic (ticket #204). + * The search path of the `TemplateLoader` class can now contain ''load + functions'' in addition to path strings. A load function is passed the + name of the requested template file, and should return a file-like object + and some metadata. New load functions are supplied for loading from egg + package data, and loading from different loaders depending on the path + prefix of the requested filename (ticket #182). Version 0.4.4