{% for section in config.items() -%} [{{ section }}] {% for key, val in section.items() -%} {{ key }} = {{ val }} {% endfor -%} {% endfor -%}