2 changed files with 5 additions and 23 deletions
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
{% macro config_item(key, value) %} |
||||
{% if value is string %} |
||||
{{ key }} = {{ value|yaml_dquote }} |
||||
{% elif value is boolean %} |
||||
{{ key }} = {{ value|string|lower }} |
||||
{% elif value|is_list %} |
||||
{{ key }} = [ |
||||
{% for item in value %} "{{ value }}", |
||||
{% endfor %} |
||||
] |
||||
{% else %} |
||||
{{ raise("config item "~key~" has unhandlable value: "~value) }} |
||||
{% endif %} |
||||
{% endmacro %} |
||||
|
||||
{% for key, value in config.items() %} |
||||
{{ config_item(key, value) }} |
||||
{% endfor %} |
Loading…
Reference in new issue