typo in word attrs (TagLib issue in Grails project)
Version: IntelliJ 12.1.5
I created a simple taglib: TestingTagLib.groovy in a Grails project.
The attrs variable cannot be resolved. I get a "Typo: In word 'attrs'". Does anyone have any thoughts on what the problem might be?
Here is my taglib file:
class TestingTagLib {
static namespace = "dac-ui"
def testing = { attrs, body ->
body(attrs['foo'])
}
def doSomething = { attrs ->
}
}
Also, the GSP file, during runtime, displays the tag and does not actually process/execute it:
<p><dac-ui:testing foo="bar" /></p>
HELP!!!
Thanks in Advance... :)
请先登录再写评论。
Anyone at Jet Brains have any thoughts on this???