Re: [PHP Template] A suggestion
[email protected] (Cyrix Haldir) Wed, 01 Mar 2000 12:31:47 +0100
| Newsgroups | php.template |
|---|---|
| Organization | Retroplay, http://www.retroplay.com |
| Message-ID | <[email protected]> |
Andrei Zmievski wrote:
>
> At 04:16 PM 2/29/00 -0800, Dan Libby wrote:
> >It is a common enough requirement that I think designers may need to do it
> on a
> >semi-regular basis. Further, it is a more general escaping mechanism than
> >html escape,
> >which doesn't escape newlines, tabs, etc that people often need escaped.
>
> So, how about:
>
> escape = html/url/none (or should it be 'no'?)
IMHO "off" would be easier to understand, when disabling some feature.
Ifear templates are getting far too complex to the average designer:
most of them want to read a 15k user manual filled with example and
start to write down something, rather than try to figure out how the
engine will default this and this
For example the problem about
{{ section sec1 }}
{{ $foo }}
{{ section sec2 }}
{{ $foo }}
{{ /section sec2 }}
{{ /section sec1 }}
should IMO avoided at all, by restarting the array internal counter
unless told to do otherwise
ie
{{ section sec1 }}
{{ $foo }}
{{ section sec2 }}
{{ $foo DONOTRESTART }}
{{ /section sec2 }}
{{ /section sec1 }}
or something similar. Maybe it would be a good idea to make all keyword
and option verbose, to look like spoken english insted of tech jargon.
I worked with some designers here in Italy, and all of them consider
computer and computer program being dump (it's often true, btw ;); we
should keep templates as simple as possble, so a semi-illeterate
designer could start working and get productive using default values and
behaviours, and then learn (if he wants) some more. This is probably one
of the main reason of PHP's success: it's easy to start, but rather
powerful in the hands of a programmer.
--
Filippo "Cyrix Haldir" Caprioli Email [email protected]
Webmaster, Developer & Unix Admin ICQ 1886191
http://www.nextgame.it http://www.retroplay.com