Re: [SMARTY] Curly braces inside a function argument

Josh Trutwin <[email protected]> Tue, 21 Aug 2007 13:29:52 -0500
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
On Tue, 21 Aug 2007 12:58:31 -0500
"Ben Davis" <[email protected]> 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

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php