Re: [PHP Template] Re: [PHP3] PHP Template Engine spec revision 0.52

[email protected] (Dan Libby) Mon, 20 Mar 2000 14:31:01 -0800
Newsgroups php.template
Message-ID <[email protected]>
I agree that the spec has become too complex.  In particular, the use of @, $,
% have confused me almost as much as perl does.  ;-)  I doubt that the target
audience (designers, html writers) will grasp this easily.  Further, I still
question the need for includes and for config file access, both of which I
believe belong in the realm of the php code.

I even question the need for template level conditionals, given that a
template writer could simply define two sections which the PHP code is able to
choose between and and selectively display/hide.

Of course, I may be biased since that is about what I already came up with.

-dan

Zeev Suraski wrote:

> In my opinion, your implementation of templates is far too complex.
> You're implementing an almost CF-level template system, with controls and
> whatnot, which makes no sense to me, having PHP as the backend.  Why would
> the template syntax make more sense than the PHP syntax?
>
> I can understand the use of templates for very straightforward stuff, if
> you want someone that doesn't understand programming to handle your pages
> (which I personally consider questionable as well, but I guess many others
> don't).  However, if that someone is bright enough to use the template
> system you're building, he doesn't need to be any smarter or more skilled
> to use PHP itself, which is why I think it's wrong to implement two
> scripting languages on top of one another.
>
> IMO, the spec should be scaled-down considerably, and be made much more
> similar to the template systems that are already built for PHP (only this
> one would be in C, instead of PHP scripts).
>
> Zeev
>
> On Mon, 20 Mar 2000, Andrei Zmievski wrote:
>
> > I have uploaded PHP Template Engine specification revision 0.52. It can
> > be accessed at http://va.php.net/~andrei/tpl-engine-spec.txt. For more
> > information see http://va.php.net/~andrei/tpl-engine.html. This revision
> > addresses quite a few issues related to sections and multi-valued
> > variables. Your opinions are welcome on the php-template mailing list.
> >
> > -Andrei
> >
> > "Claiming Java is easier than C++ is like
> >  saying that K2 is shorter than Everest."
> >  -- Larry O'Brien (editor, Software Development)
> >
> >
>
> --
> Zeev Suraski <[email protected]>
> http://www.zend.com/
>
> --
> PHP Template Engine Mailing List
> Current engine specification can be found at:
> http://va.php.net/~andrei/tpl-engine-spec.txt
> To unsubscribe, e-mail: [email protected]