Package ratpack.groovy.template
Class Markup
- java.lang.Object
-
- ratpack.groovy.template.Markup
-
- All Implemented Interfaces:
Renderable
public class Markup extends Object implements Renderable
-
-
Constructor Summary
Constructors Constructor Description Markup(CharSequence contentType, Charset encoding, Closure<?> definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequence
getContentType()
Closure<?>
getDefinition()
Charset
getEncoding()
void
render(Context context)
Render this object to the response.
-
-
-
Constructor Detail
-
Markup
public Markup(CharSequence contentType, Charset encoding, Closure<?> definition)
-
-
Method Detail
-
getContentType
public CharSequence getContentType()
-
getEncoding
public Charset getEncoding()
-
getDefinition
public Closure<?> getDefinition()
-
render
public void render(Context context) throws Exception
Description copied from interface:Renderable
Render this object to the response.- Specified by:
render
in interfaceRenderable
- Parameters:
context
- the request handling context- Throws:
Exception
- any
-
-