Re: [SMARTY] Curly braces inside a function argument
| From: | Gregorio Kus | Date: | Wed, 22 Aug 2007 16:17:17 +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-13756@lists.php.net to get a copy of this message | ||
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 bugit 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