reserved brackets
| From: | Rasmus Schultz | Date: | Mon, 06 Jan 2003 17:07:41 +0000 |
| Subject: | reserved brackets | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7035@lists.php.net to get a copy of this message | ||
I need to do something like this in a template:
{$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??