I have a lot of pages that are just kid templates that get rendered
and spit out.
As such, my controllers.py has lots of statements like this:
@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?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---