Hi,
I'm using the Genshi template via --
<myapp/__init__.py>
config.add_renderer('.genshi', MyGenshiRenderer)
...
class MyGenshiRenderer:
def __init__(self, info):
loader =
TemplateLoader(os.path.abspath(os.path.dirname(__file__)))
self.tmpl = loader.load(info.name)
def __call__(self, value, system):
return self.tmpl.generate(**value).render('html')
<myapp/__init__.py>
How can I auto-restart pyramid whenever my template changes?
Thanks!
Jerry
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.