List Info

Thread: Re: Curly braces inside a function argument




Re: Curly braces inside a function argument
user name
2007-08-22 11:17:17
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 "}
> {myfunc test='foo '}
> {myfunc test="foo bar"}
>
> 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 "]]


Grego

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


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )