public interface TemplateRenderer
| Modifier and Type | Method and Description |
|---|---|
void |
render(String templateName,
Map<String,Object> context,
Writer writer)
Renders the template to the writer, using the given context and adding an
I18nResolver, WebResourceManager and WebResourceUrlProvider. |
void |
render(String templateName,
Writer writer)
Renders the template to the writer, using the given context and adding an
I18nResolver, WebResourceManager and WebResourceUrlProvider. |
String |
renderFragment(String fragment,
Map<String,Object> context)
Renders the template to the writer, using the given context and adding an
I18nResolver, WebResourceManager and WebResourceUrlProvider. |
boolean |
resolve(String templateName)
Check whether the given template exists or not
|
void render(String templateName, Writer writer) throws RenderingException, IOException
I18nResolver, WebResourceManager and WebResourceUrlProvider.templateName - file name of the template to renderwriter - where to write the rendered templateRenderingException - thrown if there is an internal exception when rendering the templateIOException - thrown if there is a problem reading the template file or writing to the writervoid render(String templateName, Map<String,Object> context, Writer writer) throws RenderingException, IOException
I18nResolver, WebResourceManager and WebResourceUrlProvider.templateName - file name of the template to rendercontext - Map of objects to make available in the template rendering processwriter - where to write the rendered templateRenderingException - thrown if there is an internal exception when rendering the templateIOException - thrown if there is a problem reading the template file or writing to the writerString renderFragment(String fragment, Map<String,Object> context) throws RenderingException
I18nResolver, WebResourceManager and WebResourceUrlProvider.fragment - template fragment to rendercontext - Map of objects to make available in the template rendering processRenderingException - thrown if there is an internal exception when rendering the templateboolean resolve(String templateName)
templateName - The name of the template to resolveCopyright © 2020 Atlassian. All rights reserved.