Package io.micronaut.views.rocker
Class RockerEngine
java.lang.Object
io.micronaut.views.rocker.RockerEngine
Engine for Rocker templates.
- Since:
 - 1.3.2
 - Author:
 - Sam Adams
 
- 
Constructor Summary
ConstructorsConstructorDescriptionRockerEngine(String path, String extension) Creates a new instance of the rocker engine. - 
Method Summary
 
- 
Constructor Details
- 
RockerEngine
Creates a new instance of the rocker engine.- Parameters:
 path- The base path templates are stored underextension- The file extension used by the templates
 
 - 
 - 
Method Details
- 
exists
Checks to see if a template exists.- Parameters:
 viewName- The name of the template- Returns:
 - True if the template exists, false otherwise
 
 - 
template
Loads the template.- Parameters:
 viewName- The name of the template- Returns:
 - The template
 
 
 -