Package ratpack.rocker
Interface RockerRenderer
-
- All Superinterfaces:
ratpack.core.render.Renderer<com.fizzed.rocker.RockerModel>
public interface RockerRenderer extends ratpack.core.render.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
RockerModelclass and pass toContext.render(Object).- Since:
- 1.5
-
-
Method Summary
Static Methods Modifier and Type Method Description static ratpack.core.render.Renderer<com.fizzed.rocker.RockerModel>create()Creates aRendererorRockerModelobjects.
-