Re: [PHP3] Template Discussion

[email protected] (Rasmus Lerdorf) Tue, 21 Mar 2000 14:16:56 -0800 (PST)
Newsgroups php.template
Message-ID <Pine.LNX.4.21.0003211343260.4030-100000@adsl-63-199-162-61.dsl.snfc21.pacbell.net>
> The template spec may be designed to meet a specific project or a project 
> paradigm in ISPI, and I guess it does, since Andrei said a couple of times 
> he needs each and every feature for an upcoming project.  I can't argue 
> with that.  I can argue on whether this should be PHP's 'official', 
> standard approach towards templates.  I think it shouldn't be, and that we 
> should have a much simpler, presentation-only templating system built into PHP.

I don't actually think we should choose sides here either way.  If
somebody wants a templating system that includes loops and conditionals,
they are likely going to get it from somewhere.  It would be nice if PHP
could accomodate them.

You didn't comment on the approach I described of having a template
description file that configures a template engine to behave in certain
ways.  This would make PHP nicely template neutral but still provide most
of the features people are looking for in a template system.  The trick is
obviously how the heck to build a parser that can change its brains on the
fly like that.

-Rasmus