No. the correct way to do it is to add an empty __init__.py file in
the template sub directory.
On 1/23/07, ken.riel <[EMAIL PROTECTED]> wrote:
>
> Solution templates in subdirectories.
>
> There are several things that I have considered exactly this way as
> hire below which do not work at me but perhaps well would be:
>
> import turbogears
> from turbogears import controllers
> class Subdirectory(controllers.Root):
> @turbogears.expose(html="project.templates.Subdirectory.index")
>
> def index(self):
> return dict()
> class Root(controllers.Root):
> @turbogears.expose(html="project.templates.index")
> def index(self):
> return dict()
> Root.Subdirectory=Subdirectory()
>
> I property found the following to produce subdirectory very easily and
> don't do charge in TurboGears. It very easily the only thing that you
> must do is the next step.
>
> Original template
> @expose(template="alchemy2.templates.login")
>
> Subdirectory template
> @expose(template="alchemy2.templates.securesite/admin")
>
> You see that I have placed a slash these ensure that TurboGears read in
> to another directory.
> I hope that your now can make a better structure. And have much
> pleasure white it.
>
> Greets,
> Ken van Riel.
>
> WebNovative
>
>
> >
>
--
cheers
elvelind grandin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---