agreif wrote: > Hi, > > In the docs I only see the following template declaration > > @turbogears.expose(html="wiki20.templates.page") > def index(self, pagename="FrontPage"): > ... > > But how can I handle the situation where the kid template can change > depanding on input values or dome other circumstances? Eg in 2005 the > template should be "wiki20.templates.page" but in 2006 > "wiki20.templates.page2" > > Is there a way in TG not to declare the kid template with annotations > but in the controller method itself, so that I can decide dynamically > which kid template should be processed? >
You can return a tg_template variable inside your dict, for example: return dict(tg_template=wiki20.templates.page, ...) Ciao Michele

