开发者

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

开发者 https://www.devze.com 2023-02-10 15:49 出处:网络
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 :

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

精彩评论

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