Re: if statements

From: Date: Tue, 15 Feb 2000 22:14:24 +0000
Subject: Re: if statements
References: 1 2 3 4 5  Groups: php.template 
Request: Send a blank email to php-template+get-57@lists.php.net to get a copy of this message
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

« previous php.template (#57) next »