Re: [SMARTY] delimiter style
| From: | Robert | Date: | Tue, 14 Dec 2004 14:44:37 +0000 |
| Subject: | Re: [SMARTY] delimiter style | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12032@lists.php.net to get a copy of this message | ||
"Yann Thomas-Gérard" <inside@parasiterecords.com> wrote in message
news:41BEF7A5.3010904@parasiterecords.com...
> Robert wrote:
>> Do you tend to leave the left and right delimiter style to {}, or do you
>> change them to avoid any possible brace collisions with other languages
>> that use {}, like CSS or JS that you may embed in your pages?
>>
>> Robert
>
> From the doc :
> "All Smarty template tags are enclosed within delimiters. By default,
> these delimiters are { and }, but they can be changed."
>
> If you want to include CSS and JS in your templates, put them inside :
> {literal}
> ...
> {/literal}
>
> Yann
>
Thanks Yann, I did read the docs and I did change them to <% %>, but then I
got to thinking about the "future" and "you never know who will get this
code" and so I wanted to see what others were doing.
Robert