public class FreemarkerRenderer extends AbstractRenderer
MODEL_ATTRIBUTE
Constructor and Description |
---|
FreemarkerRenderer()
Deprecated.
since 5.0.2, use
FreemarkerRenderer(FreemarkerHelper, RenderingEngine) |
FreemarkerRenderer(info.magnolia.freemarker.FreemarkerHelper fmRenderer,
RenderingEngine renderingEngine) |
Modifier and Type | Method and Description |
---|---|
info.magnolia.freemarker.FreemarkerHelper |
getFmHelper() |
protected Map<String,Object> |
newContext()
Create a new context object which is a map.
|
protected void |
onRender(javax.jcr.Node content,
RenderableDefinition definition,
RenderingContext renderingCtx,
Map<String,Object> ctx,
String templateScript)
Finally execute the rendering.
|
addContextAttribute, getAggregationStateSafely, getContentType, getContentType, getContextAttributes, getMainContentSafely, newModel, newModel, render, resolveTemplateScript, restoreContext, saveAttribute, saveContextState, setContentType, setContextAttribute, setContextAttributes, setupContext, wrapNodeForModel, wrapNodeForTemplate
public FreemarkerRenderer()
FreemarkerRenderer(FreemarkerHelper, RenderingEngine)
@Inject public FreemarkerRenderer(info.magnolia.freemarker.FreemarkerHelper fmRenderer, RenderingEngine renderingEngine)
protected void onRender(javax.jcr.Node content, RenderableDefinition definition, RenderingContext renderingCtx, Map<String,Object> ctx, String templateScript) throws RenderException
AbstractRenderer
onRender
in class AbstractRenderer
RenderException
protected Map<String,Object> newContext()
AbstractRenderer
newContext
in class AbstractRenderer
public info.magnolia.freemarker.FreemarkerHelper getFmHelper()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.