class ExamplesTagLib {
def showControllerName = { attrs, body ->
out << "Executing controller: ${controllerName}"
}
}
controllerName
Purpose
Returns the name of the currently executing controller
Examples
<g:showControllerName />
Description
Returns the name of the currently executing controller which is dictated by the URL mappings