Class zwt.tpl.TemplateFactory
Extends
zwt.Object.
A Template factory is used to get and/or create zwt.tpl.Template objects.
Template object are cached based on the template URL for performance reasons.
Defined in: TemplateFactory.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
zwt.tpl.TemplateFactory.getTemplate(String_templateURL)
Return the template object for the specified template URL.
|
Method Detail
<static>
{zwt.tpl.Template}
zwt.tpl.TemplateFactory.getTemplate(String_templateURL)
Return the template object for the specified template URL.
This method creates, caches and return template objects based on the template URL extension.
This implementation only supports zwt.tpl.xsl.XSLTemplate with '.xsl' extension.
- Parameters:
- {String} String_templateURL
- The template URL
- Throws:
- {Error}
- If the template extension is not supported
- Returns:
- A template object