public class GSPSitemeshPage extends AbstractHTMLPage implements Content
Grails/GSP specific implementation of Sitemesh's AbstractHTMLPage g:capture* tags in RenderTagLib are used to capture head, meta, title, component and body contents. No html parsing is required for templating since capture tags are added at GSP compilation time.
Constructor and description |
---|
GSPSitemeshPage
() |
GSPSitemeshPage
(boolean renderingLayout) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addProperty(java.lang.String name, java.lang.Object value) |
|
public void |
addProperty(java.lang.String name, java.lang.String value) |
|
public static HTMLPage |
content2htmlPage(Content content) |
|
public java.lang.String |
getBody() |
|
public java.lang.Object |
getContentBuffer(java.lang.String name)
|
|
public java.lang.String |
getHead() |
|
public java.lang.String |
getPage() |
|
public StreamCharBuffer |
getTitleBuffer() |
|
public boolean |
isTitleCaptured() |
|
public boolean |
isUsed() |
|
public int |
originalLength() |
|
public void |
reset() |
|
public void |
setBodyBuffer(StreamCharBuffer bodyBuffer) |
|
public void |
setContentBuffer(java.lang.String tagName, StreamCharBuffer buffer)
|
|
public void |
setHeadBuffer(StreamCharBuffer headBuffer) |
|
public void |
setPageBuffer(StreamCharBuffer pageBuffer) |
|
public void |
setTitleBuffer(StreamCharBuffer titleBuffer) |
|
public void |
setTitleCaptured(boolean titleCaptured) |
|
public void |
setUsed(boolean used) |
|
public void |
writeBody(java.io.Writer out) |
|
public void |
writeHead(java.io.Writer out) |
|
public void |
writeOriginal(java.io.Writer writer) |
|
public void |
writePage(java.io.Writer out) |
name
- propertyName of contentBuffer (with "page." prefix)
tagName
- "tagName" name of buffer (without "page." prefix)