Re: if statements

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
On Tue, 15 Feb 2000, Sanford Redlich wrote:
> As a programmer I like using PHP syntax, since I already know it.
> 
> However, one requirement of the templates is to make it easy for designers
> to read and modify.  We're already asking them to learn the "{xxx}" syntax,
> and they'll prefer something that follows that for the familiarity and
> simplicity.
> 
> So I think your SmartTemplate syntax would be more consistent, simpler, and
> more comfortable for designers.  I'd go with SmartTemplate syntax.  
> 
> Doing that also has the advantage of making it implicitly clear that we're
> trying to separate code from HTML in the templates.

I had real problems trying to support {else} construct in SmartTemplate,
so that's why you didn't see it in example. I will have to brainstorm on
how easy/hard it will be to parse 'if' statements.

-Andrei

Any sufficiently advanced Operating System
is indistinguishable from Linux.
                              - Jim Dennis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.