Re: [PHP Template] dynamic blocks

From: Date: Wed, 16 Feb 2000 17:24:27 +0000
Subject: Re: [PHP Template] dynamic blocks
References: 1 2  Groups: php.template 
Request: Send a blank email to php-template+get-88@lists.php.net to get a copy of this message
> > Yet another idea that goes along with OPTION #2, get rid of > curly braces altogether, and use a '$' to denote variables: > > <if $title != "foo"> > <b>$title</b> is $$5.00 > </if> > > Notice double $$ to escape a literal '$' I forgot pros and cons here for this idea... Pros: Easy to read, much better than {if: {title} != "foo"} Cons: ?? If the variable name is butted up against other text, then delimit it with braces like so: <if $title != "foo"> ${title}name </if>

« previous php.template (#88) next »