Re: [PHP3] PHP Template Engine spec revision 0.52
[email protected] (Zeev Suraski) Tue, 21 Mar 2000 00:21:38 +0200 (IST)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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/