Executive Summary
{{ report.executive_summary|replace('\n', '
')|safe }}
{% if report.findings %}
Key Findings
{% for finding in report.findings %}
{{ finding.title }}
{{ finding.description }}
{% endfor %}
{% endif %}
{% for section in report.sections|sort(attribute='order') %}
{{ section.title }}
{% if section.content is string %}
{{ section.content }}
{% elif section.content is mapping %}
{% for key, value in section.content.items() %}
| {{ key }} |
{% if value is sequence and value is not string %}
{% for item in value %}
{% if item is mapping %}
{% for k, v in item.items() %}
- {{ k }}: {{ v }}
{% endfor %}
{% else %}
- {{ item }}
{% endif %}
{% endfor %}
{% elif value is mapping %}
{% for k, v in value.items() %}
| {{ k }} | {{ v }} |
{% endfor %}
{% else %}
{{ value }}
{% endif %}
|
{% endfor %}
{% elif section.content is sequence %}
{% if section.content and section.content[0] is mapping %}
{% for key in section.content[0].keys() %}
| {{ key }} |
{% endfor %}
{% for item in section.content %}
{% for value in item.values() %}
| {{ value }} |
{% endfor %}
{% endfor %}
{% else %}
{% for item in section.content %}
- {{ item }}
{% endfor %}
{% endif %}
{% endif %}
{% for subsection in section.subsections|sort(attribute='order') %}
{{ subsection.title }}
{% if subsection.content is string %}
{{ subsection.content }}
{% elif subsection.content is mapping %}
{% for key, value in subsection.content.items() %}
| {{ key }} |
{% if value is sequence and value is not string %}
{% for item in value %}
- {{ item }}
{% endfor %}
{% elif value is mapping %}
{% for k, v in value.items() %}
| {{ k }} | {{ v }} |
{% endfor %}
{% else %}
{{ value }}
{% endif %}
|
{% endfor %}
{% elif subsection.content is sequence %}
{% if subsection.content and subsection.content[0] is mapping %}
{% for key in subsection.content[0].keys() %}
| {{ key }} |
{% endfor %}
{% for item in subsection.content %}
{% for value in item.values() %}
| {{ value }} |
{% endfor %}
{% endfor %}
{% else %}
{% for item in subsection.content %}
- {{ item }}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% if report.recommendations %}
Recommendations
{% for rec in report.recommendations %}
{{ rec.priority|replace('_', ' ')|upper }}
{{ rec.title }}
{{ rec.description }}
{% endfor %}
{% endif %}