public class RockerEngine
extends java.lang.Object
Constructor and Description |
---|
RockerEngine(java.lang.String path,
java.lang.String extension)
Creates a new instance of the rocker engine.
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String viewName)
Checks to see if a template exists.
|
com.fizzed.rocker.BindableRockerModel |
template(java.lang.String viewName)
Loads the template.
|
public RockerEngine(java.lang.String path, java.lang.String extension)
path
- The base path templates are stored underextension
- The file extension used by the templatespublic boolean exists(java.lang.String viewName)
viewName
- The name of the templatepublic com.fizzed.rocker.BindableRockerModel template(java.lang.String viewName)
viewName
- The name of the template