changeset 375:f3a8686b80d7 trunk

Tiny simplification of the template engine plugin, taking advantage of the `default_class` parameter added to the `TemplateLoader` in [443].
author cmlenz
date Thu, 23 Nov 2006 11:23:35 +0000
parents b146277eb54a
children 0e0952d85d97
files genshi/template/plugin.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/template/plugin.py
+++ b/genshi/template/plugin.py
@@ -59,7 +59,8 @@
 
         self.loader = TemplateLoader(filter(None, search_path),
                                      auto_reload=auto_reload,
-                                     max_cache_size=max_cache_size)
+                                     max_cache_size=max_cache_size,
+                                     default_class=self.template_class)
 
     def load_template(self, templatename, template_string=None):
         """Find a template specified in python 'dot' notation, or load one from
@@ -74,7 +75,7 @@
             basename = templatename[divider + 1:] + self.extension
             templatename = resource_filename(package, basename)
 
-        return self.loader.load(templatename, cls=self.template_class)
+        return self.loader.load(templatename)
 
     def _get_render_options(self, format=None):
         if format is None:
Copyright (C) 2012-2017 Edgewall Software