info.magnolia.templating.renderers
Class PlainTextTemplateRenderer

java.lang.Object
  extended by info.magnolia.rendering.renderer.AbstractRenderer
      extended by info.magnolia.templating.renderers.PlainTextTemplateRenderer
All Implemented Interfaces:
info.magnolia.rendering.renderer.Renderer, info.magnolia.rendering.renderer.RenderingModelBasedRenderer

public class PlainTextTemplateRenderer
extends info.magnolia.rendering.renderer.AbstractRenderer

Template renderer for plain text.

Version:
$Revision: $ ($Author: $)

Field Summary
 
Fields inherited from class info.magnolia.rendering.renderer.AbstractRenderer
MODEL_ATTRIBUTE
 
Constructor Summary
PlainTextTemplateRenderer()
           
 
Method Summary
protected  Map newContext()
           
protected  void onRender(javax.jcr.Node content, info.magnolia.rendering.template.RenderableDefinition definition, info.magnolia.rendering.context.RenderingContext renderingCtx, Map<String,Object> ctx, String templateScript)
           
protected  String resolveTemplateScript(javax.jcr.Node content, info.magnolia.rendering.template.RenderableDefinition definition, info.magnolia.rendering.model.RenderingModel<?> model, String actionResult)
           
 
Methods inherited from class info.magnolia.rendering.renderer.AbstractRenderer
addContextAttribute, getAggregationStateSafely, getContextAttributes, getMainContentSafely, newModel, newModel, render, restoreContext, saveAttribute, saveContextState, setContextAttribute, setContextAttributes, setupContext, wrapNodeForModel, wrapNodeForTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextTemplateRenderer

public PlainTextTemplateRenderer()
Method Detail

resolveTemplateScript

protected String resolveTemplateScript(javax.jcr.Node content,
                                       info.magnolia.rendering.template.RenderableDefinition definition,
                                       info.magnolia.rendering.model.RenderingModel<?> model,
                                       String actionResult)
Overrides:
resolveTemplateScript in class info.magnolia.rendering.renderer.AbstractRenderer

onRender

protected void onRender(javax.jcr.Node content,
                        info.magnolia.rendering.template.RenderableDefinition definition,
                        info.magnolia.rendering.context.RenderingContext renderingCtx,
                        Map<String,Object> ctx,
                        String templateScript)
                 throws info.magnolia.rendering.engine.RenderException
Specified by:
onRender in class info.magnolia.rendering.renderer.AbstractRenderer
Throws:
info.magnolia.rendering.engine.RenderException

newContext

protected Map newContext()
Specified by:
newContext in class info.magnolia.rendering.renderer.AbstractRenderer


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.