I hope this or something like it makes it into the next version of tg2
*** dottednamesupport - old.py 2009-12-16 16:14:31.000000000 -0800
--- dottednamesupport.py 2009-12-16 16:34:08.000000000 -0800
***************
*** 36,42 ****
"""
def __init__(self, input_encoding, output_encoding,
! imports, default_filters):
self.input_encoding = input_encoding
self.output_encoding = output_encoding
--- 36,42 ----
"""
def __init__(self, input_encoding, output_encoding,
! imports, default_filters, preprocessor=None):
self.input_encoding = input_encoding
self.output_encoding = output_encoding
***************
*** 46,51 ****
--- 46,52 ----
self.template_cache = dict()
# implement a cache for the filename lookups
self.template_filenames_cache = dict()
+ self.preprocessor=preprocessor
# a mutex to ensure thread safeness during template loading
self._mutex = threading.Lock()
***************
*** 138,144 ****
output_encoding=self.output_encoding,
default_filters=self.default_filters,
imports=self.imports,
! lookup=self)
return self.template_cache[filename]
--- 139,146 ----
output_encoding=self.output_encoding,
default_filters=self.default_filters,
imports=self.imports,
! lookup=self,
! preprocessor=self.preprocessor)
return self.template_cache[filename]
> --
>
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>
>
>
>
Btw, why don't you use Genshi in the first place if you want to have
something that plays well with html editors and IDEs? If performance is
really an issue, I wouldn't use a preprocessor.
-- Christoph
-- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to turbo...@googlegroups.com. To unsubscribe from this group, send email to turbogears+...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.