RE: [SMARTY] Literal works , but ...

From: Date: Thu, 10 Jul 2003 21:43:29 +0000
Subject: RE: [SMARTY] Literal works , but ...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9865@lists.php.net to get a copy of this message
Here's how I do it on my sites: {literal} <style type="text/css"> <!-- body { {/literal} bgcolor:{$myBgColor}; color:{$myTextColor}; {literal} } //--> </style> {/literal} You need to wrap any malicous brackets with the literal tag -----Original Message----- From: Florian Winkler [mailto:grasshalm@hotmail.com] Sent: Thursday, July 10, 2003 5:36 PM To: smarty-general@lists.php.net Subject: [SMARTY] Literal works , but ... Hi all together , First of all thanks for your quick help :-). The {literal} - Tag works fine , but there is another problem. Inside these two tags are a few normal smarty-variables. for instance : tpl-file : ########### {literal} <style type="text/css"> <!-- body { bgcolor:{$myBgColor}; color:{$myTextColor}; } //--> </style> {/literal} ########## now my variables $myTextColor are no more interpreted. Has anybody an idea ? greetz fLo _________________________________________________________________ MSN - More Useful Every Day http://www.msn.de -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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