public class DefaultMustache extends DefaultCode implements Mustache
appended, binding, mustache, name, oh, returnThis, tc, type
Constructor and Description |
---|
DefaultMustache(TemplateContext tc,
MustacheFactory cf,
Code[] codes,
String name) |
Modifier and Type | Method and Description |
---|---|
Code[] |
getCodes()
Get the underlying code objects.
|
void |
identity(Writer writer)
Execute the mustache to output itself.
|
void |
init()
Initialize the mustache before executing.
|
Writer |
run(Writer writer,
Object[] scopes)
Only executes the codes.
|
void |
setCodes(Code[] newcodes)
Change the underlying codes of the mustache implementation.
|
addScope, append, appendText, clone, clone, execute, execute, get, runIdentity, tag
public DefaultMustache(TemplateContext tc, MustacheFactory cf, Code[] codes, String name)
public Code[] getCodes()
Mustache
public Writer run(Writer writer, Object[] scopes)
Mustache
run
in interface Mustache
run
in class DefaultCode
public void setCodes(Code[] newcodes)
Mustache
public void identity(Writer writer)
Mustache
public void init()
Mustache
Copyright © 2012. All Rights Reserved.