Small corrections to config parser

This commit is contained in:
Eric Renfro 2018-05-18 16:23:13 -04:00
parent 099f331f61
commit 466557317a
Signed by untrusted user who does not match committer: psi-jack
GPG Key ID: 14977F3A50D9A5BF
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,12 @@
{% for section in config -%}
[{{ section }}]
{% for key, val in config[section].iteritems() -%}
{{ key }} = {{ val }}
{% if val is True -%}
{{ key }} = true
{% elif val is False -%}
{{ key }} = false
{% else -%}
{{ key }} = "{{ val }}"
{% endif -%}
{% endfor -%}
{% endfor -%}