public interface Mustache extends Code
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String text)
Append text to the mustache output.
|
java.lang.Object |
clone()
Deep clone of the mustache object.
|
java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object scope)
Execute the mustache object with a given writer and a single scope context.
|
java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object[] scopes)
Execute the mustache with a given writer and an array of scope objects.
|
Code[] |
getCodes()
Get the underlying code objects.
|
void |
identity(java.io.Writer writer)
Execute the mustache to output itself.
|
void |
init()
Initialize the mustache before executing.
|
java.io.Writer |
run(java.io.Writer writer,
java.lang.Object[] scopes)
Only executes the codes.
|
void |
setCodes(Code[] codes)
Change the underlying codes of the mustache implementation.
|
void append(java.lang.String text)
java.lang.Object clone()
java.io.Writer execute(java.io.Writer writer, java.lang.Object scope)
java.io.Writer execute(java.io.Writer writer, java.lang.Object[] scopes)
Code[] getCodes()
void identity(java.io.Writer writer)
void init()
void setCodes(Code[] codes)
java.io.Writer run(java.io.Writer writer, java.lang.Object[] scopes)
writer
- scopes
- Copyright © 2012. All Rights Reserved.