public interface Mustache extends Code
Modifier and Type | Method and Description |
---|---|
void |
append(String text)
Append text to the mustache output.
|
Object |
clone()
Deep clone of the mustache object.
|
Writer |
execute(Writer writer,
List<Object> scopes)
Execute the mustache with a given writer and an array of scope objects.
|
default Writer |
execute(Writer writer,
Object scope)
Execute the mustache object with a given writer and a single scope context.
|
default Writer |
execute(Writer writer,
Object[] scopes) |
Code[] |
getCodes()
Get the underlying code objects.
|
void |
identity(Writer writer)
Execute the mustache to output itself.
|
void |
init()
Initialize the mustache before executing.
|
Node |
invert(String text)
Invert this mustache given output text.
|
Writer |
run(Writer writer,
List<Object> scopes)
Only executes the codes.
|
void |
setCodes(Code[] codes)
Change the underlying codes of the mustache implementation.
|
void append(String text)
Object clone()
default Writer execute(Writer writer, Object scope)
writer
- write the output of the executed template herescope
- the root object to useWriter execute(Writer writer, List<Object> scopes)
Code[] getCodes()
void identity(Writer writer)
void init()
void setCodes(Code[] codes)
Writer run(Writer writer, List<Object> scopes)
writer
- write the output of the executed template herescopes
- the array of scopes to executeCopyright © 2018. All rights reserved.