info.magnolia.module.templating.renderers
Class FreemarkerTemplateRenderer
java.lang.Object
info.magnolia.module.templating.AbstractRenderer
info.magnolia.module.templating.renderers.AbstractTemplateRenderer
info.magnolia.module.templating.renderers.FreemarkerTemplateRenderer
- All Implemented Interfaces:
- RenderingModelBasedRenderer, TemplateRenderer
public class FreemarkerTemplateRenderer
- extends AbstractTemplateRenderer
Template renderer for freemarker.
- Version:
- $Revision: 14052 $ ($Author: gjoseph $)
Constructor Summary |
FreemarkerTemplateRenderer()
Constructs a FreemarkerTemplateRenderer that uses the default (singleton)
instance of FreemarkerHelper. |
Methods inherited from class info.magnolia.module.templating.AbstractRenderer |
determineTemplatePath, getAggregationStateSafely, getMagnoliaTemplatingUtilities, getMainContentSafely, getPageAttributeName, newModel, render, restoreContext, saveAttribute, saveContextState, setContextAttribute, setupContext, wrapNodeForModel, wrapNodeForTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreemarkerTemplateRenderer
public FreemarkerTemplateRenderer()
- Constructs a FreemarkerTemplateRenderer that uses the default (singleton)
instance of FreemarkerHelper.
onRender
protected void onRender(Content content,
RenderableDefinition definition,
Writer out,
Map ctx,
String templatePath)
throws RenderException
- Description copied from class:
AbstractRenderer
- Finally execute the rendering.
- Specified by:
onRender
in class AbstractRenderer
- Parameters:
content
- TODO
- Throws:
RenderException
newContext
protected Map newContext()
- Description copied from class:
AbstractRenderer
- Create a new context object which is a map.
- Specified by:
newContext
in class AbstractRenderer
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.