public interface Template
Modifier and Type | Method and Description |
---|---|
default String |
render()
Render a Template as String without applying a context.
|
default String |
render(Map<String,Object> context)
Render a Template as String applying a given context.
|
void |
render(Map<String,Object> context, Writer output)
Render a Template to the given output applying a given context.
|
default void |
render(Writer output)
Render a Template to the given output without applying a context.
|
default String render() throws TemplateException
TemplateException
- when something goes wrong rendering the template
default String render(Map<String,Object> context) throws TemplateException
context
- The context to apply
TemplateException
- when something goes wrong rendering the template
default void render(Writer output) throws TemplateException
output
- The output Writer
TemplateException
- when something goes wrong rendering the template
void render(Map<String,Object> context, Writer output) throws TemplateException
context
- The context to apply
output
- The output Writer
TemplateException
- when something goes wrong rendering the template