public class Markup extends Object implements Renderable
| Constructor and Description |
|---|
Markup(CharSequence contentType,
Charset encoding,
Closure<?> definition) |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getContentType() |
Closure<?> |
getDefinition() |
Charset |
getEncoding() |
void |
render(Context context)
Render this object to the response.
|
public Markup(CharSequence contentType, Charset encoding, Closure<?> definition)
public CharSequence getContentType()
public Charset getEncoding()
public Closure<?> getDefinition()
public void render(Context context) throws Exception
Renderablerender in interface Renderablecontext - the request handling contextException - any