com.scooterframework.web.controller
Interface TemplateHandler

All Known Implementing Classes:
StringTemplateHandler

public interface TemplateHandler

TemplateHandler interface defines methods of a template handler. A template handler is responsible for processing the template with input data.


Method Summary
 java.lang.String handle(java.io.File viewTemplate, java.util.Map<java.lang.String,java.lang.Object> dataMap)
          Handles processing the viewTemplate with dataMap.
 java.lang.String handle(java.lang.String content, java.util.Map<java.lang.String,java.lang.Object> dataMap)
          Handles processing the content with dataMap.
 

Method Detail

handle

java.lang.String handle(java.lang.String content,
                        java.util.Map<java.lang.String,java.lang.Object> dataMap)
Handles processing the content with dataMap.

Parameters:
content - The content to be processed.
dataMap - data (name/value pairs) to be used to process the content
Returns:
processed content as string

handle

java.lang.String handle(java.io.File viewTemplate,
                        java.util.Map<java.lang.String,java.lang.Object> dataMap)
Handles processing the viewTemplate with dataMap.

Parameters:
viewTemplate -
dataMap -
Returns:
processed content as string