You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
517 B
18 lines
517 B
2 years ago
|
{% macro postfix_option(option) -%}
|
||
|
{% if option.value is boolean -%}
|
||
|
{{ option.key }} = {{ 'yes' if option.value else 'no' }}
|
||
|
{% elif option.value | type_debug == 'list' -%}
|
||
|
{{ option.key }} =
|
||
|
{% for suboption in option.value -%}
|
||
|
{{ "\t" ~ suboption }}
|
||
|
{% endfor -%}
|
||
|
{% else -%}
|
||
|
{{ option.key }} = {{ option.value if option.value != None else '' }}
|
||
|
{% endif -%}
|
||
|
{% endmacro -%}
|
||
|
|
||
|
|
||
|
{% for option in (postfix_cfg | d({}) | dict2items) -%}
|
||
|
{{- postfix_option(option) }}
|
||
|
{%- endfor %}
|