Re: [SMARTY] Curly braces inside a function argument
| From: | Josh Trutwin | Date: | Tue, 21 Aug 2007 18:29:52 +0000 |
| Subject: | Re: [SMARTY] Curly braces inside a function argument | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13747@lists.php.net to get a copy of this message | ||
On Tue, 21 Aug 2007 12:58:31 -0500
"Ben Davis" <bendavis78@gmail.com> wrote:
> How can put curly braces inside of a function argument? Is it not
> possible? everything I've tried doesn't seem to work:
>
> {myfunc test="foo {bar}"}
> {myfunc test='foo {bar}'}
> {myfunc test="foo {ldelim}bar{rdelim}"}
>
> No matter what, smarty always percieves the first closing brace as
> the closing brace for the function itself. Should this be
> considered a bug?
Not sure if it's the "best" way but did you try:
{myfunc test="foo {ldelim}bar{rdelim}"}
http://smarty.php.net/manual/en/language.function.ldelim.php
Josh