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 booleanWhen 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 TypeMethodDescriptionvoidaccept(NodeVisitor visitor) booleanvoidrender(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) voidsetOnlyRenderInheritanceSafeNodes(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:
renderin interfaceRenderableNode- Specified by:
renderin classAbstractRenderableNode- Throws:
IOException
-
accept
- Specified by:
acceptin interfaceNode- Specified by:
acceptin classAbstractRenderableNode
-
getChildren
-
isOnlyRenderInheritanceSafeNodes
public boolean isOnlyRenderInheritanceSafeNodes() -
setOnlyRenderInheritanceSafeNodes
public void setOnlyRenderInheritanceSafeNodes(boolean onlyRenderInheritanceSafeNodes)
-