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, tagpublic DefaultMustache(TemplateContext tc, DefaultMustacheFactory df, Code[] codes, String name)
public Code[] getCodes()
Mustachepublic Writer run(Writer writer, List<Object> scopes)
Mustacherun in interface Mustacherun in class DefaultCodewriter - write the output of the executed template herescopes - the array of scopes to executepublic Node invert(String text)
Mustachepublic void setCodes(Code[] newcodes)
Mustachepublic Writer execute(Writer writer, List<Object> scopes)
DefaultCodepublic void identity(Writer writer)
Mustachepublic void init()
Mustachepublic boolean isRecursive()
public void setRecursive()
Copyright © 2018. All rights reserved.