RE: [SMARTY] reserved brackets

From: Date: Mon, 06 Jan 2003 17:19:56 +0000
Subject: RE: [SMARTY] reserved brackets
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7036@lists.php.net to get a copy of this message
Hello, Yes, define a CSS class and use something like: {$myvar|replace:'something':'<DIV class="smallText">something</DIV>'} I'm not sure of the syntax but it should do the trick. -----Message d'origine----- De : Rasmus Schultz [mailto:m@mindplay.dk] Envoye : lundi 6 janvier 2003 18:01 A : Smarty List Objet : [SMARTY] reserved brackets 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?? -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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