public interface Options extends HelperDefinition
HelperDefinition.ValuePlaceholder| Modifier and Type | Method and Description |
|---|---|
void |
append(CharSequence sequence)
Append the given sequence to the rendered template.
|
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. |
void |
partial(String templateId)
Render the template with the current context and append the result
to the rendered template.
|
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 templateId) |
getContentLiteralBlock, getHash, getParameters, getTagInfovoid append(CharSequence sequence)
sequence - void fn()
void partial(String templateId)
templateId - MustacheException - If there's no such templateString source(String templateId)
templateId - MustacheException - If there's no such templatevoid 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 toCopyright © 2015. All Rights Reserved.