{% macro node(n) %}{{ n.indent }}{{ n.name }}{% for a in n.args %} {{ a|kdl }}{% endfor %}{% for p in n.props %} {{ p.name }}={{ p.value|kdl }}{% endfor %}{% if n.block %} { {% for c in n.children %}{{ node(c) }}{% endfor %}{{ n.indent }}} {% else %} {% endif %}{% endmacro %} {%- for section in sections %}{% for n in section %}{{ node(n) }}{% endfor %}{% if not loop.last %} {% endif %}{% endfor %}