Robert Kaussow
f6a2053355
All checks were successful
continuous-integration/drone/push Build is passing
17 lines
517 B
Django/Jinja
17 lines
517 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<ipset type="{{ item.type | default('hash:ip') }}">
|
|
{% if item.short is defined %}
|
|
<short>{{ item.short }}</short>
|
|
{% endif %}
|
|
{% if item.description is defined %}
|
|
<description>{{ item.description }}</description>
|
|
{% endif %}
|
|
{% for name, value in (item.option | default({})).items() %}
|
|
<option name="{{ name }}" value="{{ value }}"/>
|
|
{% endfor %}
|
|
{% for entry in item.entry | default([]) %}
|
|
<entry>{{ entry }}</entry>
|
|
{% endfor %}
|
|
</ipset>
|