Re: [SMARTY] Curly braces inside a function argument
[email protected] (Gregorio Kus) Wed, 22 Aug 2007 18:17:17 +0200
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
Ben Davis 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
it isn't a bug
when I have to generate javascript and/or css
I use:
class AxSmarty extends Smarty {
function __construct() {
$this->left_delimiter = '[[';
$this->right_delimiter = ']]';
}
};
then simply
[[myfunc test="foo {bar}"]]
Grego