info.magnolia.module.templating
Interface TemplateRenderer

All Known Subinterfaces:
TemplateRenderer
All Known Implementing Classes:
AbstractTemplateRenderer, FreemarkerTemplateRenderer, JspTemplateRenderer, PlainTextTemplateRenderer, ServletTemplateRenderer

public interface TemplateRenderer

A TemplateRenderer implementation is responsible for generating the actual response from request data and a template. A typical jsp implementation will simply forward the request to the jsp through request dispatcher, but anybody is free to bind a specific implementation to a template type.

Version:
$Revision: 35335 $ ($Author: gjoseph $)
Author:
Fabrizio Giustina

Method Summary
 void renderTemplate(info.magnolia.cms.core.Content content, Template template, Writer out)
          Generates the actual output using the selected template.
 void renderTemplate(Template template, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. since 4.0
 

Method Detail

renderTemplate

void renderTemplate(info.magnolia.cms.core.Content content,
                    Template template,
                    Writer out)
                    throws RenderException,
                           IOException
Generates the actual output using the selected template.

Throws:
RenderException
IOException

renderTemplate

void renderTemplate(Template template,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
Deprecated. since 4.0

Throws:
IOException
javax.servlet.ServletException
See Also:
renderTemplate(info.magnolia.cms.core.Content, Template, java.io.Writer)


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