Small corrections to config parser
This commit is contained in:
parent
099f331f61
commit
466557317a
1 changed files with 7 additions and 1 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Reference in a new issue