Re: [SMARTY] Escaping { in assign statement (not using {literal})
boots <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
That's tricky because you can not embed '{' and '}' (specifically '}')
anywhere in a smarty tag so you can't use {ldelim} or {rdelim}... but
you can use $smarty.ldelim and $smarty.rdelim.
{assign var="somevar" value="this: `$smarty.ldelim``$smarty.rdelim` is
a tag"}
HTH
--- Ivo Jansch <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> how can I make this work:
>
> {assign var="somevar" value="this: {} is a tag"}
>
> I need to escape the {} somehow, so it doesn't break the assign tag.
>
> Greetings,
> Ivo
>
> - --
> Ivo Jansch <[email protected]>
> ibuildings.nl BV - information technology
> http://www.ibuildings.nl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFC+hHY95NUnGFZm9cRAsdUAJ91VIOWOIgcu7pF++SUD7BQSerxbQCfYdlz
> iyhYbgIpA9id2vWzQl5sU7Q=
> =0+dH
> -----END PGP SIGNATURE-----
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php