MCPcopy
hub / github.com/pallets/jinja / _output_child_post

Method _output_child_post

src/jinja2/compiler.py:1492–1501  ·  view source on GitHub ↗

Output extra source code after visiting a child of an ``Output`` node.

(
        self, node: nodes.Expr, frame: Frame, finalize: _FinalizeInfo
    )

Source from the content-addressed store, hash-verified

1490 self.write(finalize.src)
1491
1492 def _output_child_post(
1493 self, node: nodes.Expr, frame: Frame, finalize: _FinalizeInfo
1494 ) -> None:
1495 """Output extra source code after visiting a child of an
1496 ``Output`` node.
1497 """
1498 self.write(")")
1499
1500 if finalize.src is not None:
1501 self.write(")")
1502
1503 def visit_Output(self, node: nodes.Output, frame: Frame) -> None:
1504 # If an extends is active, don't render outside a block.

Callers 1

visit_OutputMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected