|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateRenderer
Generic interface for rendering templates where the templating engine may be provided by a plugin.
Method Summary | |
---|---|
void |
renderTo(java.lang.Appendable appendable,
java.lang.String templateProviderPluginKey,
java.lang.String templateName,
java.util.Map<java.lang.String,java.lang.Object> data)
Render a plugin-provided template to a Writer. |
void |
renderTo(java.lang.Appendable appendable,
java.lang.String templateProviderPluginKey,
java.lang.String templateName,
java.util.Map<java.lang.String,java.lang.Object> data,
java.util.Map<java.lang.String,java.lang.Object> injectedData)
Render a plugin-provided template to a Writer. |
Method Detail |
---|
void renderTo(java.lang.Appendable appendable, java.lang.String templateProviderPluginKey, java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> data) throws TemplateRenderingException
appendable
- the buffer to write the template output intotemplateProviderPluginKey
- the plugin that provides the template as a resourcetemplateName
- the name of the plugin resource that contains the templatedata
- the data to pass into the template
TemplateRenderingException
- if something goes wrong during the renderingvoid renderTo(java.lang.Appendable appendable, java.lang.String templateProviderPluginKey, java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> data, java.util.Map<java.lang.String,java.lang.Object> injectedData) throws TemplateRenderingException
appendable
- the buffer to write the template output intotemplateProviderPluginKey
- the plugin that provides the template as a resourcetemplateName
- the name of the plugin resource that contains the templatedata
- the data to pass into the templateinjectedData
- injected data to pass into the template
TemplateRenderingException
- if something goes wrong during the rendering
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |