|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Template
Represents a template that can be rendered with data.
Method Summary | |
---|---|
RenderingContext |
createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader)
Create a new RenderingContext. |
String |
getDisplayName()
Name to use when displaying error or log messages. |
EscapeMode |
getEscapeMode()
Return the EscapeMode in which this template was generated. |
String |
getTemplateName()
Name of template (e.g. |
void |
render(Data data,
Appendable out,
ResourceLoader resourceLoader)
Render the template. |
void |
render(RenderingContext context)
Render the template with a custom RenderingContext. |
Method Detail |
---|
void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException
data
- Data to merge with template.out
- Target to write to.resourceLoader
- ResourceLoader to use instead of the default template one when loading
files.
IOException
void render(RenderingContext context) throws IOException
context
- RenderingContext to use during rendering.
IOException
RenderingContext createRenderingContext(Data data, Appendable out, ResourceLoader resourceLoader)
data
- Data to merge with template.out
- Target to write to.resourceLoader
- ResourceLoader to load files.String getTemplateName()
String getDisplayName()
EscapeMode getEscapeMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |