|
||||||||||
| 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, inited, logger, mustache, name, notfound, oh, returnThis, tc, type, wrapper |
| 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, setCodes |
| Methods inherited from class com.github.mustachejava.codes.DefaultCode |
|---|
addScope, append, appendText, execute, get, identity, runCodes, runIdentity |
| Methods inherited from class java.lang.Object |
|---|
clone, 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 Codeexecute in class PartialCodewriter - The writer to write the output toscopes - The scopes to evaluate the embedded names against.
MustacheExceptionpublic void init()
init in interface Codeinit in class PartialCode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||