org.codehaus.waffle.testing.view
Interface ViewProcessor

All Known Implementing Classes:
FreemarkerProcessor

public interface ViewProcessor

ViewProcessor abstracts the view processing implemented by different template engines, eg Freemarker, Velocity etc. The view expects a single controller instance under key "controller".

Author:
Mauro Talevi

Method Summary
 java.lang.String process(java.lang.String resource, java.lang.Object controller)
          Processes view content with given controller
 

Method Detail

process

java.lang.String process(java.lang.String resource,
                         java.lang.Object controller)
Processes view content with given controller

Parameters:
resource - the template resource
controller - the controller instance
Returns:
The processed content


Copyright © 2008. All Rights Reserved.