01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.components.template;
06:
07: import java.util.Map;
08:
09: /**
10: * Any template language which wants to support UI tag templating needs to provide an implementation of this interface
11: * to handle rendering the template
12: *
13: * @author jcarreira
14: */
15: public interface TemplateEngine {
16:
17: /**
18: * Renders the template
19: * @param templateContext context for the given template.
20: * @throws Exception is thrown if there is a failure when rendering.
21: */
22: void renderTemplate(TemplateRenderingContext templateContext)
23: throws Exception;
24:
25: /**
26: * Get's the properties for the given template.
27: *
28: * @param template the template.
29: * @return the properties as key value pairs.
30: */
31: Map getThemeProps(Template template);
32:
33: }
|