"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> 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?
The template doesn't need to be under the project directory. It may be inside
a widget, it may be a string, it may be somewhere else on your system.
You can ommit the 'myproject' string, IIRC.
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---