Package ratpack.rocker
Interface RockerRenderer
-
- All Superinterfaces:
Renderer<com.fizzed.rocker.RockerModel>
public interface RockerRenderer extends Renderer<com.fizzed.rocker.RockerModel>
A renderer for Rocker templates.Rocker works by compiling templates into Java classes that extends
RockerModel
. Compiling the templates is a build time concern and not handled by this runtime library. Please consult Rocker's documentation regarding build tool plugins for Rocker.To render a Rocker template, simply create an instance of the corresponding
RockerModel
class and pass toContext.render(Object)
.- Since:
- 1.5