public class PartialCode extends DefaultCode
Modifier and Type | Field and Description |
---|---|
protected String |
dir |
protected String |
extension |
protected boolean |
isRecursive |
protected Mustache |
partial |
protected int |
recrusionLimit |
appended, binding, df, mustache, name, oh, returnThis, tc, type
Modifier | Constructor and Description |
---|---|
protected |
PartialCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
String type,
String variable) |
|
PartialCode(TemplateContext tc,
DefaultMustacheFactory cf,
String variable) |
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() |
void |
identity(Writer writer) |
void |
init() |
protected String |
partialName()
Builds the file name to be included by this partial tag.
|
void |
setCodes(Code[] newcodes) |
addScope, append, appendText, clone, clone, filterText, get, getName, invert, matchAppended, run, runIdentity, tag
protected final String extension
protected final String dir
protected Mustache partial
protected int recrusionLimit
protected boolean isRecursive
protected PartialCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, String type, String variable)
public PartialCode(TemplateContext tc, DefaultMustacheFactory cf, String variable)
public void identity(Writer writer)
identity
in interface Code
identity
in class DefaultCode
public Code[] getCodes()
getCodes
in interface Code
getCodes
in class DefaultCode
public void setCodes(Code[] newcodes)
setCodes
in interface Code
setCodes
in class DefaultCode
public Writer execute(Writer writer, List<Object> scopes)
DefaultCode
execute
in interface Code
execute
in class DefaultCode
writer
- The writer to write the output toscopes
- The scopes to evaluate the embedded names against.public void init()
init
in interface Code
init
in class DefaultCode
protected String partialName()
Copyright © 2018. All rights reserved.