{%- macro render_annotation_fields(data, parent_key='') -%} {%- for key, value in data.items() -%} {%- set current_key = parent_key ~ key if parent_key else key -%} {%- if value is mapping -%}

{{ current_key }}

{{ render_annotation_fields(value, parent_key=current_key ~ ' -> ') }}
{%- elif value is iterable and value is not string -%}

{{ current_key }}

{%- for item in value -%} {# Fix: Check if item is mapping before recursing #} {%- if item is mapping -%} {{ render_annotation_fields(item, parent_key=current_key ~ ' (' ~ loop.index ~ ') -> ') }} {%- else -%}
{{ item }}
{%- endif -%} {% if not loop.last %}
{% endif %} {%- endfor -%}
{%- else -%}
{{ current_key }} {{ value }}
{%- endif -%} {%- endfor -%} {%- endmacro -%} {{ report_title }}

{{ report_title }}

{{ collection_source_path | e }}

{% for panel in panels %} {% include ['panels/_', panel.id, '.html'] | join %} {% endfor %}