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

From: Date: Thu, 10 Jul 2003 21:44:14 +0000
Subject: Re: [SMARTY] Literal works , but ...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9866@lists.php.net to get a copy of this message
On Thu, Jul 10, 2003 at 11:36:15PM +0200, Florian Winkler wrote: > 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 ? you have to write ...{/literal}{$myBgColor}{literal}... or you have to change $smarty->left_delimiter and $smarty->right_delimiter. the former is a bit more typing, the latter breaks all your existing templates. it depends highly on the situation, which one fits best in the long run. HTH messju > greetz > fLo

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