I am writing my first taglib as part of a plugin and I would like to document it. Adding javadoc (is there any place that documents groovydoc or is it really the same thing?) doesn't seem to work for non-methods.
Specifically, is it possible to document the def mytag in:
/**
* 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"
}
}
As lots of things in grails are specified using closures, if it's really not possible to document them, then it looks like we have a problem. Or is there some other best practice involving separate documentation files that I should be using?
I'd appreciate any answers, pointers or insights.