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.
26 lines
847 B
26 lines
847 B
{% for item_name, item_value in document_dictionary.items() recursive -%}
|
|
{% if item_name != '#' -%}
|
|
{% if item_value is mapping -%}
|
|
{{ '' if loop.first else '\n' -}}
|
|
{% if '#' in item_value -%}
|
|
{% for comment in item_value['#'] -%}
|
|
{{ comment }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
{% if item_name[1] == 'inet' -%}
|
|
{{ item_name[0] + item_name[1:] | join(' ') }}
|
|
{%- for keyword in item_value -%}
|
|
{%- if keyword != '#' %} {{ keyword[1] }} { {{ item_value[keyword] | join('; ')}}; }{% endif %}{% endfor -%};
|
|
{% else -%}
|
|
{{ item_name[0] + item_name[1:] | join(' ') }} {
|
|
{{ loop(item_value.items()) | indent}}};
|
|
{% endif -%}
|
|
{% else -%}
|
|
{% for comment in item_value[:-1] -%}
|
|
{{ comment }}
|
|
{% endfor -%}
|
|
{{ item_name[0] + item_name[1:] | join(' ') }}{% if not item_value[-1] == '' %} {{ item_value[-1] }}{% endif%};
|
|
{% endif -%}
|
|
{% endif -%}
|
|
{% endfor -%}
|