Re: [PHP Template] recursive templates

[email protected] (Andrei Zmievski) Fri, 18 Feb 2000 15:11:39 -0600
Newsgroups php.template
Message-ID <[email protected]>
On Fri, 18 Feb 2000, Dan Libby wrote:
> 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.

Don't worry I'll check for that, I already have a similar check in
SmartTemplate. HTML::Template does it using max include level, but I
think we can do better.

-Andrei

"The time from now until the completion
 of the project tends to become constant." -- Douglas Hartree