com.atlassian.confluence.plugins.soy
Class VelocityFriendlySoyTemplateRenderer

java.lang.Object
  extended by com.atlassian.confluence.plugins.soy.VelocityFriendlySoyTemplateRenderer

public class VelocityFriendlySoyTemplateRenderer
extends java.lang.Object

A template renderer shim with an interface suitable for use from VelocityTemplates.

Since:
4.2.

Constructor Summary
VelocityFriendlySoyTemplateRenderer(TemplateRenderer templateRenderer)
           
 
Method Summary
 java.lang.String getRenderedTemplateHtml(java.lang.String templateProviderPluginKey, java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> data)
          Render a plugin-provided template and return as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityFriendlySoyTemplateRenderer

public VelocityFriendlySoyTemplateRenderer(TemplateRenderer templateRenderer)
Method Detail

getRenderedTemplateHtml

public java.lang.String getRenderedTemplateHtml(java.lang.String templateProviderPluginKey,
                                                java.lang.String templateName,
                                                java.util.Map<java.lang.String,java.lang.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 resource
templateName - the name of the plugin resource that contains the template
data - the data to pass into the template


Copyright © 2003-2014 Atlassian. All Rights Reserved.