def parse_block(ast):\r
block_name = ast['block']['name']\r
\r
+ if block_name == 'extends':\r
+ return parse_block_extends(ast)\r
+\r
if block_name == 'from':\r
return parse_block_from(ast)\r
\r
lineno=lineno_from_parseinfo(ast['parseinfo'])\r
)\r
\r
+def parse_block_extends(ast):\r
+ return nodes.Extends(\r
+ parse_conditional_expression(ast['block']['parameters'][0]['value'])\r
+ )\r
+\r
def parse_block_for(ast):\r
target = None\r
iter = None\r
'id': 'list-%d'|format(variable)}|xmlattr }}>\r
...\r
</ul>\r
-{{ "[{}]".format(page.title) if page.title }}
\ No newline at end of file
+{{ "[{}]".format(page.title) if page.title }}\r
+{% extends layout_template if layout_template is defined else 'master.html' %}
\ No newline at end of file