Bar*_*ler 11 documentation grails groovy
我正在编写我的第一个taglib作为插件的一部分,我想记录它.添加javadoc(有没有文件groovydoc的地方或它真的是一样的东西?)似乎不适用于非方法.
具体来说,如何记录def mytag:
/**
* This doc shows up
*/
class MyTagLib {
static namespace = "myns"
/**
* This doc does not show up, but I'd like to document attrs.
*/
def mytag = {attrs ->
out << "something"
}
}
Run Code Online (Sandbox Code Playgroud)
因为使用闭包指定了Grails中的很多东西,如果它真的无法记录它们,那么看起来我们遇到了问题.是否有其他解决方案涉及我应该使用的单独的文档文件?