Package io.pebbletemplates.pebble.node
Class BodyNode
java.lang.Object
io.pebbletemplates.pebble.node.AbstractRenderableNode
io.pebbletemplates.pebble.node.BodyNode
- All Implemented Interfaces:
Node
,RenderableNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<RenderableNode> private boolean
When a template extends a parent template there are very few nodes in the child that should actually get rendered such as set and import. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NodeVisitor visitor) boolean
void
render
(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) void
setOnlyRenderInheritanceSafeNodes
(boolean onlyRenderInheritanceSafeNodes) Methods inherited from class io.pebbletemplates.pebble.node.AbstractRenderableNode
getLineNumber, setLineNumber
-
Field Details
-
children
-
onlyRenderInheritanceSafeNodes
private boolean onlyRenderInheritanceSafeNodesWhen a template extends a parent template there are very few nodes in the child that should actually get rendered such as set and import. All others should be ignored. -
nodesToRenderInChild
-
-
Constructor Details
-
BodyNode
-
-
Method Details
-
render
public void render(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) throws IOException - Specified by:
render
in interfaceRenderableNode
- Specified by:
render
in classAbstractRenderableNode
- Throws:
IOException
-
accept
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classAbstractRenderableNode
-
getChildren
-
isOnlyRenderInheritanceSafeNodes
public boolean isOnlyRenderInheritanceSafeNodes() -
setOnlyRenderInheritanceSafeNodes
public void setOnlyRenderInheritanceSafeNodes(boolean onlyRenderInheritanceSafeNodes)
-