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.


Field Summary
 
Fields inherited from class info.magnolia.rendering.renderer.AbstractRenderer
MODEL_ATTRIBUTE
 
Constructor Summary
PlainTextTemplateRenderer()
          Deprecated. since 4.5.10, use PlainTextTemplateRenderer(RenderingEngine)
PlainTextTemplateRenderer(info.magnolia.rendering.engine.RenderingEngine renderingEngine)
           
 
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()
Deprecated. since 4.5.10, use PlainTextTemplateRenderer(RenderingEngine)


PlainTextTemplateRenderer

@Inject
public PlainTextTemplateRenderer(info.magnolia.rendering.engine.RenderingEngine renderingEngine)
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-2013 Magnolia International Ltd.. All Rights Reserved.