info.magnolia.module.templating.paragraphs
Class PlainTextParagraphRenderer
java.lang.Object
info.magnolia.module.templating.paragraphs.PlainTextParagraphRenderer
- All Implemented Interfaces:
- ParagraphRenderer
public class PlainTextParagraphRenderer
- extends Object
- implements ParagraphRenderer
A simple paragraph renderer which just writes the value of the "text" property of the content node.
Could be useful for plaintext resources (css, robots.txt, ...)
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Method Summary |
void |
render(info.magnolia.cms.core.Content content,
Paragraph paragraph,
Writer out)
The given paragraph is ignored here, since we're just printing the value of the text property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTextParagraphRenderer
public PlainTextParagraphRenderer()
render
public void render(info.magnolia.cms.core.Content content,
Paragraph paragraph,
Writer out)
throws IOException
- The given paragraph is ignored here, since we're just printing the value of the text property.
- Specified by:
render
in interface ParagraphRenderer
- Parameters:
content
- the content to render (usually passed to the appropriate templating engine)paragraph
- information about the rendering (template to use etc)out
- where the renderering happens
- Throws:
IOException
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.