Re: [PHP Template] dynamic blocks

From: Date: Thu, 17 Feb 2000 00:15:11 +0000
Subject: Re: [PHP Template] dynamic blocks
References: 1 2 3 4 5 6 7  Groups: php.template 
Request: Send a blank email to php-template+get-100@lists.php.net to get a copy of this message
On Wed, 16 Feb 2000, Monte Ohrt wrote: > It would probably work without the braces, but then you have two > separate formats of your variables in the template. We have a better > consistancy in that regard with this format: > > {if: $title != "foo"} > <b>$title</b> > {else:} > <b>none</b> > {/if} Hmm, I think it's nice to have everything template related inside {{ and }}. Having just $title in the HTML a little confusing. > I'm not sure if the colons are needed or not. They nicely delimit the template commands, I think. What does everyone else think? -Andrei

« previous php.template (#100) next »