{% for namespace_name, namespace in ini_dictionary.items() -%} [{{ namespace_name | join('][') }}] {% for variable, value in namespace.items() -%} {{ variable }} {{ value | join(' ') }} {% endfor -%} {{ "" if loop.last else "\n" -}} {% endfor -%}