Package com.github.mustachejava.codes
Class ExtendCode
java.lang.Object
com.github.mustachejava.codes.DefaultCode
com.github.mustachejava.codes.PartialCode
com.github.mustachejava.codes.ExtendCode
Extending a template through in-place replacement of the overridden codes.
User: sam
Date: 11/27/11
Time: 10:39 AM
-
Field Summary
FieldsFields inherited from class com.github.mustachejava.codes.PartialCode
dir, extension, isRecursive, partial, recrusionLimitFields inherited from class com.github.mustachejava.codes.DefaultCode
appended, binding, df, mustache, name, oh, returnThis, tc, type -
Constructor Summary
ConstructorsConstructorDescriptionExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()private Code[]replaceCodes(Code[] supercodes, Map<String, ExtendNameCode> replaceMap, Set<Code> seen) Methods inherited from class com.github.mustachejava.codes.PartialCode
execute, executePartial, getCodes, identity, partialName, setCodesMethods inherited from class com.github.mustachejava.codes.DefaultCode
addScope, append, appendText, clone, clone, filterText, get, getName, invert, matchAppended, run, runIdentity, tag
-
Field Details
-
mf
-
-
Constructor Details
-
ExtendCode
public ExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, String name) throws MustacheException - Throws:
MustacheException
-
-
Method Details
-
replaceCodes
-
init
public void init()- Specified by:
initin interfaceCode- Overrides:
initin classPartialCode
-