info.magnolia.module.templating.paragraphs
Class FreemarkerParagraphRenderer
java.lang.Object
info.magnolia.module.templating.AbstractRenderer
info.magnolia.module.templating.paragraphs.AbstractParagraphRenderer
info.magnolia.module.templating.paragraphs.FreemarkerParagraphRenderer
- All Implemented Interfaces:
- ParagraphRenderer, RenderingModelBasedRenderer
public class FreemarkerParagraphRenderer
- extends AbstractParagraphRenderer
Renders a paragraph using freemarker. Optionally supports the execution of an action
class whose constructor can either be empty or take exactly one Content parameter and
one ActionBasedParagraph parameter.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Constructor Summary |
FreemarkerParagraphRenderer()
Constructs a FreemarkerParagraphRenderer that uses the default (singleton)
instance of FreemarkerHelper. |
Methods inherited from class info.magnolia.module.templating.AbstractRenderer |
determineTemplatePath, getAggregationStateSafely, getAggrigationStateSafely, getMagnoliaTemplatingUtilities, getMainContentSafely, getPageAttributeName, newModel, render, restoreContext, saveAttribute, setContextAttribute, wrapNodeForModel, wrapNodeForTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreemarkerParagraphRenderer
public FreemarkerParagraphRenderer()
- Constructs a FreemarkerParagraphRenderer that uses the default (singleton)
instance of FreemarkerHelper.
onRender
protected void onRender(Content content,
RenderableDefinition definition,
java.io.Writer out,
java.util.Map ctx,
java.lang.String templatePath)
throws RenderException
- Description copied from class:
AbstractRenderer
- Finally execute the rendering.
- Specified by:
onRender
in class AbstractRenderer
- Parameters:
content
- TODO
- Throws:
RenderException
saveContextState
protected java.util.Map saveContextState(java.util.Map ctx)
- Overrides:
saveContextState
in class AbstractRenderer
setupContext
protected void setupContext(java.util.Map ctx,
Content content,
RenderableDefinition definition,
RenderingModel state,
java.lang.Object actionResult)
- Overrides:
setupContext
in class AbstractRenderer
newContext
protected java.util.Map newContext()
- Description copied from class:
AbstractRenderer
- Create a new context object which is a map.
- Specified by:
newContext
in class AbstractRenderer
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.