Re: reserved brackets

From: Date: Mon, 06 Jan 2003 17:30:07 +0000
Subject: Re: reserved brackets
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7038@lists.php.net to get a copy of this message
m@mindplay.dk (Rasmus Schultz) writes: > {$myvar|replace:'something':'<DIV STYLE="{font-size: > 8px}">something</DIV>'} > > This won't work, because I'm using Smarty's reserved brackets > in the expression - but these are necessary also when writing > stylesheets and stuff ... and in the case of needing to use > the brackets inside an expression, you can't use {literal} > > Any ideas?? {capture name='foo'} {literal}<DIV STYLE="{font-size: 8px}">something</DIV>{/literal} {capture} {$myvar|replace:'something':$foo} (Untested)

« previous php.smarty.general (#7038) next »