On Wed, 2003-06-04 at 07:54, alex wrote:
> We have fifty or so websites using template toolkit.  They share the
> same template toolkit object with the same include path of
> '/space/templates'.  So that they can include other templates relative
> to their subdirectory from the template root, they define a view like
> this:
> 
>   [% VIEW website 
>     prefix = 'Playlouder/docs/' %]
>   [% END %]
> 
> So then to include Playlouder/docs/foo/header, we can do this:
> 
>   [% website.include('foo/header') %]

To me it seems easier to just change the include path depending on what
website you're in.  You can even do a sort of inheritance that way,
where you have generic templates at the top level and then override some
of them for your current site.

- Perrin


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to