freemarker.template
Interface TemplateTransformModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
HtmlEscape, LegacyCompress, CompressWhitespace, XmlEscape

public interface TemplateTransformModel
extends TemplateModel

Transformations in a template data model must implement this interface.

The detail messages of any TemplateModelExceptions thrown will be included as HTML comments in the output.


Method Summary
 void transform(java.io.Reader source, java.io.PrintWriter output)
          Performs a transformation/filter on FreeMarker output.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

transform

public void transform(java.io.Reader source,
                      java.io.PrintWriter output)
               throws TemplateModelException
Performs a transformation/filter on FreeMarker output.
Parameters:
source - the input to be transformed
output - the destination of the transformation