public class ExtendCode extends PartialCode
extension, partial
appended, binding, mustache, name, oh, returnThis, tc, type
Constructor and Description |
---|
ExtendCode(TemplateContext tc,
DefaultMustacheFactory mf,
Mustache codes,
String name) |
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.
|
void |
init() |
getCodes, identity, partialName, setCodes
addScope, append, appendText, clone, clone, execute, get, run, runIdentity, tag
public ExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, String name) throws MustacheException
MustacheException
public Writer execute(Writer writer, 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.