Class VelocityFriendlySoyTemplateRenderer
- java.lang.Object
-
- com.atlassian.confluence.plugins.soy.VelocityFriendlySoyTemplateRenderer
-
public class VelocityFriendlySoyTemplateRenderer extends Object
A template renderer shim with an interface suitable for use from VelocityTemplates.- Since:
- 4.2.
-
-
Constructor Summary
Constructors Constructor Description VelocityFriendlySoyTemplateRenderer(TemplateRenderer templateRenderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRenderedTemplateHtml(String templateProviderPluginKey, String templateName, Map<String,Object> data)
Render a plugin-provided template and return as a String.
-
-
-
Constructor Detail
-
VelocityFriendlySoyTemplateRenderer
public VelocityFriendlySoyTemplateRenderer(TemplateRenderer templateRenderer)
-
-
Method Detail
-
getRenderedTemplateHtml
public String getRenderedTemplateHtml(String templateProviderPluginKey, String templateName, Map<String,Object> data)
Render a plugin-provided template and return as a String. If there are failures during rendering then and empty String will be returned and an error logged.- Parameters:
templateProviderPluginKey
- 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
-
-