Interface TemplateHandler
- All Known Implementing Classes:
WikiTemplateHandler
,XhtmlTemplateHandler
public interface TemplateHandler
Processes templates.
-
Method Summary
Modifier and TypeMethodDescriptiongenerateEditorFormat
(PageTemplate template, List<? extends Variable> variables, String spaceKey) getTemplateVariables
(PageTemplate template) insertVariables
(Reader templateXml, List<? extends Variable> variables) Insert specified variables into the template XML before returning it.
-
Method Details
-
getTemplateVariables
- Throws:
XhtmlException
-
insertVariables
Insert specified variables into the template XML before returning it. If an <at:var> is encountered in the XML that doesn't have a value specified, it will be replaced with empty string.- Parameters:
templateXml
- template XMLvariables
- the template variables- Returns:
- the updated template XML with variables replaced with actual values
-
generateEditorFormat
String generateEditorFormat(PageTemplate template, List<? extends Variable> variables, String spaceKey) throws XhtmlException - Throws:
XhtmlException
-