public interface Options extends HelperDefinition
Modifier and Type | Interface and Description |
---|---|
static interface |
Options.HelperExecutable
A helper task to be executed asynchronously.
|
HelperDefinition.ValuePlaceholder
Modifier and Type | Method and Description |
---|---|
void |
append(CharSequence sequence)
Append the given sequence to the rendered template.
|
void |
executeAsync(Options.HelperExecutable executable)
Executes the given
Options.HelperExecutable asynchronously. |
void |
fn()
Proceed with template execution, i.e. execute the block.
|
void |
fn(Appendable appendable)
Proceed with execution, i.e. execute the block.
|
Appendable |
getAppendable()
In most cases it's better to use the convenient method
append(CharSequence) instead. |
HelperDefinition |
getOriginalDefinition() |
Object |
getValue(String key)
The key is first processed by the
KeySplitter and then processed
by the resolver chain. |
void |
partial(String name)
Render the template with the current context and append the result to the
rendered template.
|
void |
partial(String templateId,
Appendable appendable)
Render the template with the current context and append the result to the
given appendable.
|
Object |
peek()
Returns the object at the top of the context stack without removing it.
|
Object |
pop()
Removes the object at the top of the context stack and returns that
object.
|
void |
push(Object contextObject)
Push the specified object on the context stack.
|
String |
source(String name) |
getContentLiteralBlock, getHash, getParameter, getParameters, getTagInfo
void append(CharSequence sequence)
sequence
- void fn()
void partial(String name)
name
- MustacheException
- If there's no such templateMustache.getName()
String source(String name)
name
- MustacheException
- If there's no such templateMustache.getName()
void push(Object contextObject)
contextObject
- Object pop()
MustacheException
- In case of a helper tries to pop a context object it did not
push previouslyObject peek()
Appendable getAppendable()
append(CharSequence)
instead.Mustache.render(Appendable, Object)
void fn(Appendable appendable)
appendable
- The appendable to append the rendered block toObject getValue(String key)
KeySplitter
and then processed
by the resolver chain.key
- null
if no such value existsKeySplitter
void partial(String templateId, Appendable appendable)
templateId
- MustacheException
- If there's no such templatevoid executeAsync(Options.HelperExecutable executable)
Options.HelperExecutable
asynchronously.executable
- HelperDefinition getOriginalDefinition()
Copyright © 2017. All rights reserved.