public class FreemarkerRenderer extends AbstractRenderer
MODEL_ATTRIBUTE
Constructor and Description |
---|
FreemarkerRenderer()
Deprecated.
since 5.0.2, use
FreemarkerRenderer(FreemarkerHelper, RenderingEngine) |
FreemarkerRenderer(FreemarkerHelper fmRenderer,
RenderingEngine renderingEngine) |
Modifier and Type | Method and Description |
---|---|
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, getRenderingEngine, newModel, newModel, render, resolveTemplateScript, restoreContext, saveAttribute, saveContextState, setContentType, setContextAttribute, setContextAttributes, setupContext, wrapNodeForModel, wrapNodeForTemplate
@Deprecated public FreemarkerRenderer()
FreemarkerRenderer(FreemarkerHelper, RenderingEngine)
@Inject public FreemarkerRenderer(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 FreemarkerHelper getFmHelper()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.