info.magnolia.module.templating.renderers
Class PlainTextTemplateRenderer

java.lang.Object
  extended by info.magnolia.module.templating.AbstractRenderer
      extended by info.magnolia.module.templating.renderers.AbstractTemplateRenderer
          extended by info.magnolia.module.templating.renderers.PlainTextTemplateRenderer
All Implemented Interfaces:
RenderingModelBasedRenderer, TemplateRenderer

public class PlainTextTemplateRenderer
extends AbstractTemplateRenderer

Template renderer for plain text.

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

Constructor Summary
PlainTextTemplateRenderer()
           
 
Method Summary
protected  Map newContext()
          Create a new context object which is a map.
protected  void onRender(info.magnolia.cms.core.Content content, RenderableDefinition definition, Writer out, Map ctx, String templatePath)
          Finally execute the rendering.
 void renderTemplate(info.magnolia.cms.core.Content content, Template template, Writer out)
          Generates the actual output using the selected template.
 
Methods inherited from class info.magnolia.module.templating.AbstractRenderer
determineTemplatePath, getAggregationStateSafely, getMagnoliaTemplatingUtilities, getMainContentSafely, getPageAttributeName, newModel, render, restoreContext, saveAttribute, saveContextState, setContextAttribute, 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

renderTemplate

public void renderTemplate(info.magnolia.cms.core.Content content,
                           Template template,
                           Writer out)
                    throws IOException
Description copied from interface: TemplateRenderer
Generates the actual output using the selected template.

Specified by:
renderTemplate in interface TemplateRenderer
Overrides:
renderTemplate in class AbstractTemplateRenderer
Throws:
IOException

newContext

protected Map newContext()
Description copied from class: AbstractRenderer
Create a new context object which is a map.

Specified by:
newContext in class AbstractRenderer

onRender

protected void onRender(info.magnolia.cms.core.Content content,
                        RenderableDefinition definition,
                        Writer out,
                        Map ctx,
                        String templatePath)
                 throws RenderException
Description copied from class: AbstractRenderer
Finally execute the rendering.

Specified by:
onRender in class AbstractRenderer
Parameters:
content - TODO
Throws:
RenderException


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