org.codehaus.waffle.testing.view
Class ViewHarness
java.lang.Object
org.codehaus.waffle.testing.view.ViewHarness
public class ViewHarness
- extends java.lang.Object
Facade that enable processing of views by different template engines. The choice of engine is made based on the
extension of the template resource, eg .ftl will trigger use of Freemarker processor.
- Author:
- Mauro Talevi
|
Method Summary |
java.lang.String |
process(java.lang.String resource,
java.lang.Object controller)
|
static java.lang.String |
processView(java.lang.String resource,
java.lang.Object controller,
boolean debug)
Static entry point to ViewHarness |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewHarness
public ViewHarness()
process
public java.lang.String process(java.lang.String resource,
java.lang.Object controller)
processView
public static java.lang.String processView(java.lang.String resource,
java.lang.Object controller,
boolean debug)
- Static entry point to ViewHarness
- Parameters:
resource - the template resource pathcontroller - the controller instancedebug - the debug boolean flag
- Returns:
- The processed resource
Copyright © 2008. All Rights Reserved.