org.objectledge.templating
Interface Template

All Known Implementing Classes:
VelocityTemplate

public interface Template

Interface for system template.

Version:
$Id: Template.java,v 1.5 2005/12/20 09:09:31 pablo Exp $
Author:
Pawel Potempski

Method Summary
 String getName()
          Returns the name of the template, which uniquely identifies it within it's Templating component.
 String merge(TemplatingContext context)
          Merge the template with context.
 

Method Detail

getName

String getName()
Returns the name of the template, which uniquely identifies it within it's Templating component.

This method should return the same name as the one passed to Templating.getTemplate(String).

Returns:
the name of the template, or null if the template was not loaded from the file system.

merge

String merge(TemplatingContext context)
             throws MergingException
Merge the template with context.

Parameters:
context - the context.
Returns:
the output.
Throws:
MergingException - if problem appears.


Copyright © 2003-2006 objectledge.org. All Rights Reserved.