@groovy.transform.CompileStatic trait GrailsView extends HttpView
A trait for all view types to extend to add methods to generate links, render other templates and so on
Type | Name and description |
---|---|
java.lang.String |
actionName @return The current action name |
grails.config.Config |
config @return The configuration |
java.lang.String |
controllerName @return The current controller name |
java.lang.String |
controllerNamespace @return The current controller namespace |
boolean |
prettyPrint Whether to pretty print |
GrailsViewTemplate |
viewTemplate The view template |
Type | Name and description |
---|---|
GrailsViewHelper |
getG() @return Obtain the view helper |
grails.web.mapping.LinkGenerator |
getLinkGenerator() The link generator |
org.grails.datastore.mapping.model.MappingContext |
getMappingContext() The GORM mapping context |
org.springframework.context.MessageSource |
getMessageSource() The message source object |
MimeUtility |
getMimeUtility() The mime utility |
grails.core.support.proxy.ProxyHandler |
getProxyHandler() Handlers for proxies |
ResolvableGroovyTemplateEngine |
getTemplateEngine() The template engine |
void |
model(groovy.lang.Closure modelDefinition) Defines the model |
Whether to pretty print
The view template
The link generator
The GORM mapping context
The message source object
The mime utility
Handlers for proxies
The template engine
Defines the model