Re: [PHP Template] dynamic blocks

From: Date: Thu, 17 Feb 2000 21:57:40 +0000
Subject: Re: [PHP Template] dynamic blocks
References: 1 2 3 4 5 6 7 8 9  Groups: php.template 
Request: Send a blank email to php-template+get-114@lists.php.net to get a copy of this message
On Thu, 17 Feb 2000, Monte Ohrt wrote: > Here are some ideas. Whatever we go with, it should be consistant: > > > {if: $title != "foo"} > <b>$title</b> > {else:} > <b>none</b> > {/if:} > > {%if $title != "foo"} > <b>$title</b> > {%else} > <b>none</b> > {%/if} > > {:if $title != "foo"} > <b>$title</b> > {:else} > <b>none</b> > {:/if} > > {if $title != "foo"} > <b>$title</b> > {else} > <b>none</b> > {/if} > > > After first glance at these, I kind of like the one with a > colon at the end. I'm not sure if the /if and else tags > need colons, but maybe they should for consistancy. I would be fine with colon either at the end or at the beginning. Having no colon at all is possible too, I suppose, but colon might keep it cleaner. I'll do whatever the majority wants. -Andrei * There is no knowledge that is not power. *

« previous php.template (#114) next »