vandevel schrieb: > Thanks for the reply. Could you suggest an easy way to determine the > path to the template? This is abstracted of course using the decorator > syntax on a controller method but I am not sure about the best way to > do that manually, in a portable fashion.
You can also use the turbogears.view.render() function: from turbogears import view view.load_engines() data = dict(foo='bar') print view.render(data, template="genshi:mypckg.templates.foo") Unfortunately r5204 breaks using "view.render()" without having started the TurboGears server first, by setting "turbogears.startup.webpath" to None instead of the empty string. See ticket http://trac.turbogears.org/ticket/1966. Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

