Hi guys!
I have a suggestion about the controllers, suppose the following code:
. class Root(controllers.RootController):
. @expose(template="cheetah:myproject.templates.index")
. def index(self):
. return {}
Why don't presume where the template is located? As the method name is
index and the templates directory is myproject/templates, the expose
method could automatically define the template path. What do you think?
Thanks for attention!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---