public class PartialCode extends DefaultCode
| Modifier and Type | Field and Description |
|---|---|
protected String |
extension |
protected Mustache |
partial |
appended, binding, mustache, name, oh, returnThis, tc, type| Modifier | Constructor and Description |
|---|---|
protected |
PartialCode(TemplateContext tc,
DefaultMustacheFactory cf,
Mustache mustache,
String type,
String variable) |
|
PartialCode(TemplateContext tc,
DefaultMustacheFactory cf,
String variable) |
| Modifier and Type | Method and Description |
|---|---|
Writer |
execute(Writer writer,
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, execute, get, run, runIdentity, tagprotected PartialCode(TemplateContext tc, DefaultMustacheFactory cf, 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, 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 © 2012. All Rights Reserved.