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

[email protected] (Zeev Suraski) Tue, 21 Mar 2000 00:38:32 +0200 (IST)
Newsgroups php.template
Message-ID <[email protected]>
On Mon, 20 Mar 2000, Dan Libby wrote:

> 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.

I want to add that this time I wasn't just saying what my personal
thoughts were, but was representing the impression I got from quite a few
hardcore PHP developers, that developed applications with the layout being
written by others.  All of them replied 'no way?!' (or something along 
the lines of this) when I asked them whether templates should have logic
(control structures) inside them.
About the many prefixes for variables, I didn't notice this before (I was
mostly concerned about the logic control structures), but I tend to agree
they're quite high in the infamous WTF scale.  If you're dealing with
programming-challenged people, you shouldn't use all of these confusing
prefixes...

Zeev

-- 
Zeev Suraski <[email protected]>
http://www.zend.com/