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  String determineTemplatePath(javax.jcr.Node content, info.magnolia.rendering.template.RenderableDefinition definition, info.magnolia.rendering.model.RenderingModel<?> model, String actionResult)
           
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)
           
 
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

determineTemplatePath

protected String determineTemplatePath(javax.jcr.Node content,
                                       info.magnolia.rendering.template.RenderableDefinition definition,
                                       info.magnolia.rendering.model.RenderingModel<?> model,
                                       String actionResult)
Overrides:
determineTemplatePath 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.