RE: Re[2]: [SMARTY] Escape the '{'?
| From: | Rod Kreisler | Date: | Sat, 16 Nov 2002 13:21:00 +0000 |
| Subject: | RE: Re[2]: [SMARTY] Escape the '{'? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6449@lists.php.net to get a copy of this message | ||
You mean Smarty isn't so smart that it doesn't know if you changed the
delimiter? ;)
However, using it should be limited to instances where you need the
delimiter to appear in some static text, NOT for replacing braces in JS or
CSS. Anybody that tries that would soon find out why...
> -----Original Message-----
> From: Bertrand DUNOGIER [mailto:bdunogier@wanadoo.fr]
> Sent: Saturday, November 16, 2002 6:21 AM
> To: smarty-general@lists.php.net
> Subject: Re[2]: [SMARTY] Escape the '{'?
>
>
> SM> The method that nobody's mentioned yet is to use {ldelim} and
> {rdelim}:
>
> SM>
> SM> http://smarty.php.net/manual/en/language.function.ldelim.html
> Ah, yes, good one, I didn't know the function. But it's not a good
> idea, since the delimiter might be changed... {literal} and / or
> external files are better imho.
>
> Bertrand
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>