jinja2.nodes.Node.iter_child_nodes

Node.iter_child_nodes(exclude=None, only=None)[source]

Iterates over all direct child nodes of the node. This iterates over all fields and yields the values of they are nodes. If the value of a field is a list all the nodes in that list are returned.