18 lines
455 B
Django/Jinja
18 lines
455 B
Django/Jinja
{% for section in sections %}
|
|
[{{ section.name }}]
|
|
{% if section.from is defined %}
|
|
from = "{{ section.from }}"
|
|
{% endif %}
|
|
{% if section.to_list is defined %}
|
|
to = {{ section.to_list }}
|
|
{% endif %}
|
|
[{{ section.name }}.server]
|
|
address = "{{ section.server.address }}"
|
|
port = {{ section.server.port }}
|
|
user = "{{ section.server.user }}"
|
|
password = "{{ section.server.password }}"
|
|
|
|
{% endfor %}
|
|
|
|
# vim: set ft=toml et sw=0 ts=2 sts=0:
|