Class FreemarkerRender
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.fm.FreemarkerEngine
-
- org.nuxeo.ecm.automation.core.rendering.FreemarkerRender
-
- All Implemented Interfaces:
Renderer
,RenderingEngine
public class FreemarkerRender extends FreemarkerEngine implements Renderer
- Author:
- Bogdan Stefanescu
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.rendering.fm.FreemarkerEngine
cfg, loader, localeMessages, messages, RENDERING_ENGINE_KEY, wrapper
-
Fields inherited from interface org.nuxeo.ecm.automation.core.rendering.Renderer
TEMPLATE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description FreemarkerRender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
render(String uriOrContent, Map<String,Object> root)
void
renderContent(String content, Object ctx, Writer writer)
-
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.FreemarkerEngine
flushCache, getConfiguration, getLoader, getMessageBundle, getObjectWrapper, getResourceLocator, getView, getView, render, setMessageBundle, setResourceLocator, setSharedVariable
-
-
-
-
Method Detail
-
renderContent
public void renderContent(String content, Object ctx, Writer writer) throws IOException, freemarker.template.TemplateException
- Throws:
IOException
freemarker.template.TemplateException
-
render
public String render(String uriOrContent, Map<String,Object> root) throws RenderingException, freemarker.template.TemplateException, IOException
- Specified by:
render
in interfaceRenderer
- Throws:
RenderingException
freemarker.template.TemplateException
IOException
-
-