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.
29 lines
608 B
29 lines
608 B
{% for item_name, item_value in document_dictionary.items() recursive %}
|
|
{% if item_name != '#' %}
|
|
{% if item_value is mapping %}
|
|
{% if '#' in item_value %}
|
|
{% for comment in item_value['#'] %}
|
|
{{ comment }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{{ item_name[1:] | join(' ') }} {
|
|
{{ loop(item_value.items()) | indent}}}
|
|
{% else %}
|
|
{% for comment in item_value[:-1] %}
|
|
{{ comment }}
|
|
{% endfor %}
|
|
{{ item_name[1:] | join(' ') }}{%- if not item_value[-1] == '' %} = {{ item_value[-1] }}
|
|
{% else %}
|
|
{%- if not loop.last%}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if not loop.last%}
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
|