Re: [SMARTY] Literal works , but ...
| From: | Wom.bat | Date: | Thu, 10 Jul 2003 21:46:10 +0000 |
| Subject: | Re: [SMARTY] Literal works , but ... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9867@lists.php.net to get a copy of this message | ||
{literal}
<style type="text/css">
<!--
body
{
bgcolor:{/literal}{$myBgColor}{literal};
color:{/literal}{$myTextColor}{literal};
}
//-->
</style>
{/literal}
or
<style type="text/css">
<!--
body
{ldelim}
bgcolor:{$myBgColor};
color:{$myTextColor};
{rdelim}
//-->
</style>
the first method is way cleaner imho... won't run you into trouble when
using custom delimiters ;o)
oh and don't get me wrong, but messju sent you the link to
http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions#template-3
didn't he?
why haven't you read it? if you had, you might have seen that there is shown
a solution to the question you just asked... ;(
Regards,
David