net.lessy.util.template
Interface TemplateManager

All Known Implementing Classes:
VelocityTemplateManager

public interface TemplateManager

Author:
Hans Lesmeister

Method Summary
 TemplateContext createContext()
          Create a Context that suits the Manager-Implementation.
 void process(String templateName, String encoding, TemplateContext context, Writer output)
          Processes a template and writes the result to the Writer
 

Method Detail

process

void process(String templateName,
             String encoding,
             TemplateContext context,
             Writer output)
Processes a template and writes the result to the Writer

Parameters:
templateName - Name of the Template.
encoding - Encoding
context - that contains all data needed to process the Template
output - Output to receive the result of the Template-Processing

createContext

TemplateContext createContext()
Create a Context that suits the Manager-Implementation.

Returns:
Instance of a context


Copyright © 2012. All Rights Reserved.