Trying to fix config parser

This commit is contained in:
Eric Renfro 2018-05-18 18:11:58 -04:00
parent 466557317a
commit 9df5862e47

View file

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