> Check turbogears.view.variable_providers
>
> Something like
>
> def addvars(vrs):
>     vrs.update({'displaydate': displayDateFunction})
>
> view.variable_providers.append(addvars)
>
> then you can refer to tg.displaydate(...) from inside any template

Thanks, that will do it. However, I ended up just putting the
formatting functions in a module and then doing
<?python
  import projectname.templates.formatting_functions
?>
which also made the functions available to the genshi template.


--~--~---------~--~----~------------~-------~--~----~
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