@groovy.transform.CompileStatic @TagLib class RenderTagLib extends java.lang.Object
Tags to help rendering of views and layouts.
| Modifiers | Name | Description | 
|---|---|---|
| protected boolean | sitemeshPreprocessMode | 
| Type | Name and description | 
|---|---|
| groovy.lang.Closure | applyLayoutApply a layout to a particular block of text or to the given view or template. | 
| CodecLookup | codecLookup | 
| ErrorsViewStackTracePrinter | errorsViewStackTracePrinter | 
| GroovyPageLayoutFinder | groovyPageLayoutFinder | 
| GroovyPagesTemplateEngine | groovyPagesTemplateEngine | 
| GroovyPagesTemplateRenderer | groovyPagesTemplateRenderer | 
| TagLibraryLookup | gspTagLibraryLookup | 
| groovy.lang.Closure | ifPagePropertyInvokes the body of this tag if the page property exists: | 
| groovy.lang.Closure | layoutBodyUsed in layouts to render the body of a SiteMesh layout. | 
| groovy.lang.Closure | layoutHeadUsed in layouts to render the head of a SiteMesh layout. | 
| groovy.lang.Closure | layoutTitleUsed in layouts to render the page title from the SiteMesh page. | 
| groovy.lang.Closure | pagePropertyUsed to retrieve a property of the decorated page. | 
| groovy.lang.Closure | renderRenders a template inside views for collections, models and beans. | 
| groovy.lang.Closure | renderExceptionRenders an exception for the errors view | 
| Type | Name and description | 
|---|---|
| protected com.opensymphony.module.sitemesh.PageParser | createPageParser(java.lang.String contentType) | 
| protected com.opensymphony.module.sitemesh.Decorator | findDecorator(javax.servlet.http.HttpServletRequest req, java.lang.String layoutName) | 
| protected groovy.text.Template | findTemplate(com.opensymphony.module.sitemesh.Decorator decorator) | 
| protected com.opensymphony.module.sitemesh.HTMLPage | getPage() | 
| protected groovy.util.Factory | getSitemeshFactory() | 
| protected boolean | isSitemeshPreprocessMode() | 
| void | setGrailsApplication(GrailsApplication grailsApplication) | 
| Methods inherited from class | Name | 
|---|---|
| class java.lang.Object | java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
 Apply a layout to a particular block of text or to the given view or template.
 <g:applyLayout name="myLayout">some text</g:applyLayout>
 <g:applyLayout name="myLayout" template="mytemplate" />
 <g:applyLayout name="myLayout" url="http://www.google.com" />
 <g:applyLayout name="myLayout" action="myAction" controller="myController">
 Invokes the body of this tag if the page property exists:
 <g:ifPageProperty name="meta.index">body to invoke</g:ifPageProperty>
 or it equals a certain value:
 <g:ifPageProperty name="meta.index" equals="blah">body to invoke</g:ifPageProperty>
 Used in layouts to render the body of a SiteMesh layout.
 <g:layoutBody />
 Used in layouts to render the head of a SiteMesh layout.
 <g:layoutHead />
 Used in layouts to render the page title from the SiteMesh page.
 <g:layoutTitle default="The Default title" />
 Used to retrieve a property of the decorated page.
 <g:pageProperty default="defaultValue" name="body.onload" />
 Renders a template inside views for collections, models and beans. Examples:
 <g:render template="atemplate" collection="${users}" />
 <g:render template="atemplate" model="[user:user,company:company]" />
 <g:render template="atemplate" bean="${user}" />
Renders an exception for the errors view