Re: [PHP Template] recursive templates
[email protected] (waltb) Fri, 18 Feb 2000 13:36:57 -0800
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
Andrei Zmievski wrote:
> On Fri, 18 Feb 2000, Andrei Zmievski wrote:
> > > Does this make any sense?
> >
> > Yes, and you will be able to do that through the use of {{include ..}}
> > construct.
>
> Let me qualify that. You will be able to include templates within each
> other but your main script will still need to know which values to
> assign to the template that gets included.
Why can't the included template know how to fill in the values? It kind of
defeats the purpose of having included templates. In that case you may as
well
just have 1 template that draws everything, since it has to know all of the
lower
level variables anyways.
What I want to be able to do, is have the 2nd and 3rd level templates
describe how
to fill in their respective template variables. That way, if you change
the 2nd and 3rd
level templates, the master doesn't have to know anything about it. Hence
the ability
of 1 php script that can handle a large group of pages, instead of only 1
type of page.
Walt
>
>
> -Andrei
>
> Hacker: Any person who derives joy from
> discovering ways to circumvent limitations.