public class STKRenderer
extends info.magnolia.rendering.renderer.FreemarkerRenderer
Constructor and Description |
---|
STKRenderer(info.magnolia.freemarker.FreemarkerHelper fmRenderer,
info.magnolia.rendering.engine.RenderingEngine renderingEngine,
STKTemplatingFunctions stkTemplatingFunctions) |
Modifier and Type | Method and Description |
---|---|
protected Site |
getSite(javax.jcr.Node node) |
void |
render(info.magnolia.rendering.context.RenderingContext renderingCtx,
Map<String,Object> contextObjects) |
protected javax.jcr.Node |
wrapNodeForModel(javax.jcr.Node content)
Wraps the current content node before passing it to the model.
|
protected javax.jcr.Node |
wrapWithHTMLEscapingWrapper(javax.jcr.Node content) |
getFmHelper, newContext, onRender
addContextAttribute, getAggregationStateSafely, getContentType, getContentType, getContextAttributes, getMainContentSafely, getRenderingEngine, newModel, newModel, resolveTemplateScript, restoreContext, saveAttribute, saveContextState, setContentType, setContextAttribute, setContextAttributes, setupContext, wrapNodeForTemplate
@Inject public STKRenderer(info.magnolia.freemarker.FreemarkerHelper fmRenderer, info.magnolia.rendering.engine.RenderingEngine renderingEngine, STKTemplatingFunctions stkTemplatingFunctions)
public void render(info.magnolia.rendering.context.RenderingContext renderingCtx, Map<String,Object> contextObjects) throws info.magnolia.rendering.engine.RenderException
render
in interface info.magnolia.rendering.renderer.Renderer
render
in class info.magnolia.rendering.renderer.AbstractRenderer
info.magnolia.rendering.engine.RenderException
protected Site getSite(javax.jcr.Node node)
protected javax.jcr.Node wrapNodeForModel(javax.jcr.Node content)
wrapNodeForModel
in class info.magnolia.rendering.renderer.AbstractRenderer
content
- the actual contentprotected javax.jcr.Node wrapWithHTMLEscapingWrapper(javax.jcr.Node content)
Copyright © 2008–2017 Magnolia International Ltd.. All rights reserved.