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