Tried adding the data information.

This commit is contained in:
Jeff Baskin 2016-10-23 20:02:12 -04:00
parent 56aabbb31a
commit 12a9447c00

View File

@ -12,10 +12,12 @@
merge=True) %} merge=True) %}
{%- macro config_entries(data, indents) -%} {%- macro config_entries(data, indents) -%}
{%- if data is mapping -%} {%- if data is string or data is number -%}
{{- " " }}{{ data }}
{%- elif data is mapping -%}
{%- for entry in data|dictsort -%} {%- for entry in data|dictsort -%}
{{ entry[0]|indent(indents, True) }} { {{ entry[0]|indent(indents, True) }} {
{{ config_entries(entry[1], indents + 2) }} {{- config_entries(entry[1], indents + 2) -}}
{{ '}'|indent(indents, True) }}{{ '\n' }} {{ '}'|indent(indents, True) }}{{ '\n' }}
{%- endfor -%} {%- endfor -%}
{%- endif -%} {%- endif -%}