T - The type of object this renderer renderspublic abstract class GroovyRendererSupport<T> extends RendererSupport<T>
RendererSupport that makes a GroovyContext available.| Constructor and Description |
|---|
GroovyRendererSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
render(Context ctx,
T object)
|
abstract void |
render(GroovyContext context,
T object)
Renders the given object to the context.
|
getTypepublic final void render(Context ctx, T object) throws java.lang.Exception
render in interface Renderer<T>render in class RendererSupport<T>ctx - The contextobject - The object to renderjava.lang.Exception - the exception thrown by render(GroovyContext, Object) if anypublic abstract void render(GroovyContext context, T object) throws java.lang.Exception
context - The context to render toobject - The object to renderjava.lang.Exception - If the object cannot be rendered for any reasonRenderer.render(ratpack.handling.Context, Object)