public class BindableRockerModel extends Object implements RockerModel
| Constructor and Description |
|---|
BindableRockerModel(String templatePath,
String templateClassName,
RockerModel model) |
| Modifier and Type | Method and Description |
|---|---|
BindableRockerModel |
__body(RockerContent __body)
Do not use this method in your controller code.
|
BindableRockerModel |
bind(Map<String,Object> values) |
BindableRockerModel |
bind(String name,
Object value) |
RockerModel |
getModel() |
BindableRockerModel |
relaxedBind(Map<String,Object> values) |
RockerOutput |
render()
Executes a template model and renders content to output.
|
<T extends RockerOutput> |
render(RockerOutputFactory<T> outputFactory)
Executes a template model and renders content to output.
|
<T extends RockerOutput> |
render(RockerOutputFactory<T> outputFactory,
RockerTemplateCustomizer templateCustomizer)
Executes a template model and renders content to output.
|
public BindableRockerModel(String templatePath, String templateClassName, RockerModel model)
public BindableRockerModel bind(Map<String,Object> values)
public BindableRockerModel relaxedBind(Map<String,Object> values)
public BindableRockerModel bind(String name, Object value)
public RockerOutput render() throws RenderingException
RockerModelrender in interface RockerModelRenderingException - Thrown if any error encountered while rendering
template. Exception will include underlying cause as well as line
and position of original template source that triggered exception.public <T extends RockerOutput> T render(RockerOutputFactory<T> outputFactory) throws RenderingException
RockerModelrender in interface RockerModelT - The output typeoutputFactory - A factory to create a new RockerOutput. If null then
the a default defined by the template will be used instead.RenderingException - Thrown if any error encountered while rendering
template. Exception will include underlying cause as well as line
and position of original template source that triggered exception.public <T extends RockerOutput> T render(RockerOutputFactory<T> outputFactory, RockerTemplateCustomizer templateCustomizer) throws RenderingException
RockerModelrender in interface RockerModelT - The output typeoutputFactory - A factory to create a new RockerOutput. If null then
the a default defined by the template will be used instead.templateCustomizer - A customizer for last second changes to template
between the time its built and the time it actually is rendered.
Useful for injecting implicit variables in frameworks. If null
then no customization will be done.RenderingException - Thrown if any error encountered while rendering
template. Exception will include underlying cause as well as line
and position of original template source that triggered exception.public RockerModel getModel()
public BindableRockerModel __body(RockerContent __body)
Copyright © 2016–2020 Fizzed, Inc. All rights reserved.