开发者

how to call grails resources plugin's "use" tag as a method

I'm trying to invoke a tag defined by the resources plugin. The local name of this tag is "use" which is a Groovy keyword. I have tried calling it with :

r.use( module:"jquery" )
ResourceTagLib.metaClass.invokeMethod( "use", [name:"jquery"])
r."use"( module:"jquery" )

but I get the error:

Expec开发者_如何学Cting at least 2 arguments, a category class and a Closure

is there any way around it?


The plugin is very new and not even officially released - it's still in release-candidate stage. So stackoverflow is probably a bad place to ask this question since so few here would have used it.

There's a new Grails plugin forum that the plugin author (Marc Palmer) watches, so your best bet is to ask there: http://grails-plugins.847840.n3.nabble.com/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜