]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Parse the contents of the body of with block
authorKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 14:43:00 +0000 (10:43 -0400)
committerKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 14:43:00 +0000 (10:43 -0400)
This logic will inevitable be generalized out in the future for
other full blocks, but for now it properly handled parsing the
contents of the block and converting it to the Jinja AST.

new_parser.py

index fee8a4a4fc887017181b47f9029551b75a46bb6c..56e927229bfc95707dcd47aa37d9f885ddd63625 100644 (file)
@@ -66,6 +66,7 @@ def parse_block_with(ast):
 \r
     with_node.targets = targets\r
     with_node.values = values\r
+    with_node.body = parse(ast['contents'])\r
 \r
     return with_node\r
 \r