Sergei Beilin schrieb:
> How do I make some module available to *all* Genshi templates in my
> application,
> so I don't write
> <?python
> import myapp.lib.mymodule
> ?>
> in each template?

Not tested, but try adding this to lib/helpers.py:

import mymodule

def add_global_tmpl_vars():
     return dict(mymodule=mymodule)

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to