From: Kevin Date: Sun, 10 May 2020 14:43:00 +0000 (-0400) Subject: Parse the contents of the body of with block X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80a6e5b3e7b89cd00b106595eab5fd9884a4fd8f;p=thirdparty%2Fjinja.git Parse the contents of the body of with block 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. --- diff --git a/new_parser.py b/new_parser.py index fee8a4a4..56e92722 100644 --- a/new_parser.py +++ b/new_parser.py @@ -66,6 +66,7 @@ def parse_block_with(ast): with_node.targets = targets with_node.values = values + with_node.body = parse(ast['contents']) return with_node