Package freemarker.core
Class IncludedTemplateNamespace
java.lang.Object
freemarker.core.AbstractScope
freemarker.core.BaseScope
freemarker.core.TemplateNamespace
freemarker.core.IncludedTemplateNamespace
- All Implemented Interfaces:
Scope,TemplateHashModel,TemplateHashModelEx,TemplateModel
This class is used for the scope of an included template.
If a variable is not found,in this namespace, it falls back
to the scope in the template from which this template was included.
-
Nested Class Summary
Nested classes/interfaces inherited from interface freemarker.template.TemplateModel
TemplateModel.InvalidExpressionModel, TemplateModel.JavaNull -
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
INVALID_EXPRESSION, JAVA_NULL, NOTHING -
Method Summary
Modifier and TypeMethodDescriptionvoidput(String name, TemplateModel var) Set a variable in this scope.Methods inherited from class freemarker.core.TemplateNamespace
definesVariable, getTemplateMethods inherited from class freemarker.core.BaseScope
clear, get, getDirectVariableNames, isEmpty, keys, remove, size, valuesMethods inherited from class freemarker.core.AbstractScope
getEnclosingScope, getEnvironment, resolveVariable
-
Method Details
-
put
Description copied from interface:ScopeSet a variable in this scope. This will typically only be used internally by the FreeMarker engine.- Specified by:
putin interfaceScope- Overrides:
putin classTemplateNamespace
-