public abstract class DefaultRockerTemplate extends RockerTemplate
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultRockerTemplate.Internal
Internal state of a template.
|
| Modifier and Type | Field and Description |
|---|---|
protected DefaultRockerTemplate.Internal |
__internal |
| Constructor and Description |
|---|
DefaultRockerTemplate(RockerModel model) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
__associate(RockerTemplate context)
Associates this template for processing within the context of another
template.
|
protected abstract void |
__doRender() |
protected RockerOutput |
__newOutput()
Creates a new RockerOutput that the template will render to.
|
RockerOutput |
__render(DefaultRockerTemplate context,
RockerOutputFactory outputFactory)
Executes template and renders content to output.
|
Raw |
raw(Object obj) |
Raw |
raw(String s) |
toStringprotected DefaultRockerTemplate.Internal __internal
public DefaultRockerTemplate(RockerModel model)
protected void __associate(RockerTemplate context)
RockerTemplate__associate in class RockerTemplatecontext - The template calling this template during a renderprotected RockerOutput __newOutput()
RockerTemplate__newOutput in class RockerTemplatepublic final RockerOutput __render(DefaultRockerTemplate context, RockerOutputFactory outputFactory) throws RenderingException
context - The optional context if this template is being rendered within another templateoutputFactory - Factory for creating output if necessaryRenderingException - 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.protected abstract void __doRender()
throws IOException,
RenderingException
IOExceptionRenderingExceptionpublic Raw raw(Object obj) throws IOException
IOExceptionpublic Raw raw(String s) throws IOException
IOExceptionCopyright © 2016–2020 Fizzed, Inc. All rights reserved.