public class ExtendCode extends PartialCode
extension, partial
appended, debug, logger, mustache, name, oh, returnThis, tc, type
Constructor and Description |
---|
ExtendCode(TemplateContext tc,
DefaultMustacheFactory mf,
Mustache codes,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
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() |
execute, getCodes, identity, partialExecute, partialName, setCodes
addScope, append, appendText, clone, execute, get, getWrapper, runCodes, runIdentity
public ExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, java.lang.String name) throws MustacheException
MustacheException
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
Copyright © 2012. All Rights Reserved.