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, tagprotected 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 Codeidentity in class DefaultCodepublic Code[] getCodes()
getCodes in interface CodegetCodes in class DefaultCodepublic void setCodes(Code[] newcodes)
setCodes in interface CodesetCodes in class DefaultCodepublic Writer execute(Writer writer, List<Object> scopes)
DefaultCodeexecute in interface Codeexecute in class DefaultCodewriter - The writer to write the output toscopes - The scopes to evaluate the embedded names against.public void init()
init in interface Codeinit in class DefaultCodeprotected String partialName()
Copyright © 2018. All rights reserved.