Package org.nuxeo.template.processors.fm
Class FreeMarkerProcessor
java.lang.Object
org.nuxeo.template.processors.AbstractTemplateProcessor
org.nuxeo.template.processors.fm.FreeMarkerProcessor
- All Implemented Interfaces:
TemplateProcessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected FMContextBuilder
protected FreemarkerEngine
protected static final Pattern
protected freemarker.cache.StringTemplateLoader
protected static final Pattern
Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FreemarkerEngine
Extract parameters from the Template file.protected String
guessMimeType
(Blob result, MimetypeRegistry mreg) renderTemplate
(TemplateBasedDocument templateBasedDocument, String templateName) Perform rendering of the named template against theTemplateBasedDocument
protected void
setBlobAttributes
(Blob result, TemplateBasedDocument templateBasedDocument) Methods inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
getSourceTemplateBlob, getWorkingDir
-
Field Details
-
loader
protected freemarker.cache.StringTemplateLoader loader -
fmEngine
-
fmContextBuilder
-
XMLStartPattern
-
HtmlTagPattern
-
-
Constructor Details
-
FreeMarkerProcessor
public FreeMarkerProcessor()
-
-
Method Details
-
getEngine
-
guessMimeType
-
setBlobAttributes
-
renderTemplate
public Blob renderTemplate(TemplateBasedDocument templateBasedDocument, String templateName) throws IOException Description copied from interface:TemplateProcessor
Perform rendering of the named template against theTemplateBasedDocument
- Specified by:
renderTemplate
in interfaceTemplateProcessor
- Throws:
IOException
-
getInitialParametersDefinition
Description copied from interface:TemplateProcessor
Extract parameters from the Template file.- Specified by:
getInitialParametersDefinition
in interfaceTemplateProcessor
- Returns:
- List of parameters for this template
- Throws:
IOException
-