org.liquidsite.app.template
Class Template

java.lang.Object
  extended byorg.liquidsite.app.template.Template

public class Template
extends java.lang.Object

A template class. This class wraps a FreeMarker template and adds the liquidsite data model upon processing.


Method Summary
 void process(Request request, ContentManager manager, java.io.Writer out)
          Processes the template with a request and an output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

process

public void process(Request request,
                    ContentManager manager,
                    java.io.Writer out)
             throws TemplateException
Processes the template with a request and an output stream. All the attributes in the request will be exposed in the template data model.

Parameters:
request - the request object
manager - the content manager to use
out - the output stream writer
Throws:
TemplateException - if the template processing failed