com.atlassian.confluence.renderer.template
Interface TemplateRenderer
- All Known Implementing Classes:
- DelegatingTemplateRenderer
public interface TemplateRenderer
Generic interface for rendering templates where the templating engine may be provided by a plugin.
renderTo
void renderTo(Appendable appendable,
String templateProviderPluginKey,
String templateName,
Map<String,Object> data)
throws TemplateRenderingException
- Render a plugin-provided template to a Writer. The format of the data object to be passed in to
the template is entirely dependent on the template implementation
- Parameters:
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
- Throws:
TemplateRenderingException
- if something goes wrong during the rendering
Copyright © 2003-2013 Atlassian. All Rights Reserved.