info.magnolia.module.templatingkit.renderers
Class STKRenderer

java.lang.Object
  extended by info.magnolia.rendering.renderer.AbstractRenderer
      extended by info.magnolia.rendering.renderer.FreemarkerRenderer
          extended by info.magnolia.module.templatingkit.renderers.STKRenderer
All Implemented Interfaces:
info.magnolia.rendering.renderer.Renderer, info.magnolia.rendering.renderer.RenderingModelBasedRenderer

public class STKRenderer
extends info.magnolia.rendering.renderer.FreemarkerRenderer

Default STK renderer.

Version:
$Id$
Author:
pbracher

Field Summary
 
Fields inherited from class info.magnolia.rendering.renderer.AbstractRenderer
MODEL_ATTRIBUTE
 
Constructor Summary
STKRenderer()
           
 
Method Summary
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)
           
 
Methods inherited from class info.magnolia.rendering.renderer.FreemarkerRenderer
getFmHelper, newContext, onRender
 
Methods inherited from class info.magnolia.rendering.renderer.AbstractRenderer
addContextAttribute, getAggregationStateSafely, getContextAttributes, getMainContentSafely, newModel, newModel, resolveTemplateScript, restoreContext, saveAttribute, saveContextState, setContextAttribute, setContextAttributes, setupContext, wrapNodeForTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STKRenderer

public STKRenderer()
Method Detail

render

public void render(info.magnolia.rendering.context.RenderingContext renderingCtx,
                   Map<String,Object> contextObjects)
            throws info.magnolia.rendering.engine.RenderException
Specified by:
render in interface info.magnolia.rendering.renderer.Renderer
Overrides:
render in class info.magnolia.rendering.renderer.AbstractRenderer
Throws:
info.magnolia.rendering.engine.RenderException

getSite

protected Site getSite(javax.jcr.Node node)

wrapNodeForModel

protected javax.jcr.Node wrapNodeForModel(javax.jcr.Node content)
Wraps the current content node before passing it to the model. Wrap the node with HTMLEscapingNodeWrapper before rendering (XSS protection)

Overrides:
wrapNodeForModel in class info.magnolia.rendering.renderer.AbstractRenderer
Parameters:
content - the actual content
Returns:
the wrapped content

wrapWithHTMLEscapingWrapper

protected javax.jcr.Node wrapWithHTMLEscapingWrapper(javax.jcr.Node content)


Copyright © 2008-2013 Magnolia International Ltd.. All Rights Reserved.