[EMAIL PROTECTED] wrote: > @expose(template="ch.templates.services") > def services( self ): > return dict() > > @expose(template="ch.templates.about") > def about( self ): > return dict() > > @expose(template="ch.templates.contact") > def contact( self ): > return dict() > > @expose(template="ch.templates.resources") > def resources( self ): > return dict() > > Is there a better way to do this? It seems okay with just four > pages....but if I get up to dozens? > Well, you can put your controller on default(self, pagename) and return tg_template in the dict.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

