Re: [PHP Template] recursive templates
[email protected] (Dan Libby) Fri, 18 Feb 2000 13:00:08 -0800
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On a tangent: I suppose there must be a rule against truly recursive templates. Eg template a includes template b includes template c includes template a -- forever. Although theoretically this could work with proper conditionals, I don't think we wanna go there. I think it should bail and spit out an error in case of recursion. -dan waltb wrote: > Howdy, > Will this template engine do recursive parsing of templates to build a > page? > I want to be able to write 1 php script that handles all of my templates > without having to > know the template heirarchy prior to parsing the templates. I'm using > FastTemplate now, > and the problem I have with it now is, when I write a script that uses > it, I have to already > know the entire template tree to know where to get the values/files to > fill in the template > variables. So, if I add a new template variable, I have to change the > the parsing script > to handle it. > I want to be able to have 1 script that handles all templates. The > template variables can be filled > in by included php code, or modules. > > Does this make any sense? > > hehe > Walt