开发者

PlayFrameWork: passing variables to a tag call

开发者 https://www.devze.com 2023-03-02 19:47 出处:网络
is it somehow possible to pass variables to a tag call: I mean something like this: #{plotGraph name:\'${name}\',

is it somehow possible to pass variables to a tag call:

I mean something like this:

#{plotGraph 
                    name:'${name}',
                    yAxis:'mA',
      开发者_开发问答              [...] 
/}

I get following error:

... does not compile : #{plotGraph} is not closed.


My immediate remark without thinking and reading your real problem: If you just use the variable name itself, doesn't it work?

#{plotGraph 
                    name:name,
                    yAxis:'mA',
                    [...] 
/}
0

精彩评论

暂无评论...
验证码 换一张
取 消