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