public class DefaultMustache extends DefaultCode implements Mustache
appended, binding, df, mustache, name, oh, returnThis, tc, type
Constructor and Description |
---|
DefaultMustache(TemplateContext tc,
DefaultMustacheFactory df,
Code[] codes,
String name) |
Modifier and Type | Method and Description |
---|---|
Writer |
execute(Writer writer,
List<Object> scopes)
The default behavior is to run the codes and append the captured text.
|
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.
|
boolean |
isRecursive() |
Writer |
run(Writer writer,
List<Object> scopes)
Only executes the codes.
|
void |
setCodes(Code[] newcodes)
Change the underlying codes of the mustache implementation.
|
void |
setRecursive() |
addScope, append, appendText, clone, clone, filterText, get, getName, invert, matchAppended, runIdentity, tag
public DefaultMustache(TemplateContext tc, DefaultMustacheFactory df, Code[] codes, String name)
public Code[] getCodes()
Mustache
public Writer run(Writer writer, List<Object> scopes)
Mustache
run
in interface Mustache
run
in class DefaultCode
writer
- write the output of the executed template herescopes
- the array of scopes to executepublic Node invert(String text)
Mustache
public void setCodes(Code[] newcodes)
Mustache
public Writer execute(Writer writer, List<Object> scopes)
DefaultCode
public void identity(Writer writer)
Mustache
public void init()
Mustache
public boolean isRecursive()
public void setRecursive()
Copyright © 2018. All rights reserved.