comparison 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
comparison
equal deleted inserted replaced
695:3d11d6b1d3d4 696:87b8e23610d4
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
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
65 and some metadata. New load functions are supplied for loading from egg
66 package data, and loading from different loaders depending on the path
67 prefix of the requested filename (ticket #182).
62 68
63 69
64 Version 0.4.4 70 Version 0.4.4
65 http://svn.edgewall.org/repos/genshi/tags/0.4.4/ 71 http://svn.edgewall.org/repos/genshi/tags/0.4.4/
66 (Aug 14, 2007, from branches/stable/0.4.x) 72 (Aug 14, 2007, from branches/stable/0.4.x)
Copyright (C) 2012-2017 Edgewall Software