|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.mustachejava.codes.DefaultCode
com.github.mustachejava.codes.PartialCode
com.github.mustachejava.codes.ExtendCode
public class ExtendCode
Extending a template.
User: sam Date: 11/27/11 Time: 10:39 AM
Field Summary |
---|
Fields inherited from class com.github.mustachejava.codes.PartialCode |
---|
extension, partial |
Fields inherited from class com.github.mustachejava.codes.DefaultCode |
---|
appended, debug, logger, mustache, name, oh, returnThis, tc, type |
Constructor Summary | |
---|---|
ExtendCode(TemplateContext tc,
DefaultMustacheFactory mf,
Mustache codes,
java.lang.String name)
|
Method Summary | |
---|---|
java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object[] scopes)
The default behavior is to run the codes and append the captured text. |
void |
init()
|
Methods inherited from class com.github.mustachejava.codes.PartialCode |
---|
execute, getCodes, partialExecute, partialName, setCodes |
Methods inherited from class com.github.mustachejava.codes.DefaultCode |
---|
addScope, append, appendText, clone, execute, get, getWrapper, identity, runCodes, runIdentity |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, java.lang.String name) throws MustacheException
MustacheException
Method Detail |
---|
public java.io.Writer execute(java.io.Writer writer, java.lang.Object[] scopes) throws MustacheException
DefaultCode
execute
in interface Code
execute
in class PartialCode
writer
- The writer to write the output toscopes
- The scopes to evaluate the embedded names against.
MustacheException
public void init()
init
in interface Code
init
in class PartialCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |