org.apache.struts2.components.template
接口 TemplateEngine

所有已知实现类:
BaseTemplateEngine, FreemarkerTemplateEngine, JspTemplateEngine, VelocityTemplateEngine

public interface TemplateEngine

Any template language which wants to support UI tag templating needs to provide an implementation of this interface to handle rendering the template


方法摘要
 Map getThemeProps(Template template)
          Get's the properties for the given template.
 void renderTemplate(TemplateRenderingContext templateContext)
          Renders the template
 

方法详细信息

renderTemplate

void renderTemplate(TemplateRenderingContext templateContext)
                    throws Exception
Renders the template

参数:
templateContext - context for the given template.
抛出:
Exception - is thrown if there is a failure when rendering.

getThemeProps

Map getThemeProps(Template template)
Get's the properties for the given template.

参数:
template - the template.
返回:
the properties as key value pairs.