index.index.gson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nucleus Show documentation
Show all versions of nucleus Show documentation
nucleus is a Grails-Groovy plugin which contains utility methods, classes and endpoints.
model {
List instanceList = []
String domainName
int totalCount
}
json {
if (domainName) {
instanceList g.render(template: "/$domainName/$domainName", var: domainName, collection: instanceList)
} else {
instanceList g.render(instanceList)
}
totalCount totalCount
}