jinja2.nodes.Node.find

Node.find(node_type)[source]

Find the first node of a given type. If no such node exists the return value is None.