Report templates
Syntax
Report Templates
Using Variables in Templates
Variables allow you to dynamically insert data into your report templates.
To use a variable, wrap its name in curly braces {}
in your template.
Syntax Example:
Project name: {project.name}
Cient name: {client.company_name}
Executive summary: {~~report.executive_summary}
You can also access fields inside arrays using loops or by referencing their properties:
Loops / Iterating Objects:
{#vulnerabilities}
- {title} (CVSS v3.1 Score: {cvss_risk})
{/vulnerabilities}
Accessing Nested Fields:
{manager.name}
{members.0.name} // First team member's name
{targets.0.endpoint} // First target's endpoint
Conditional Rendering:
Some template engines support conditional blocks. For example:
{#affected_hosts | length > 0}
Affected Hosts:
{#affected_hosts}
- {endpoint}
{/affected_hosts}
{/affected_hosts | length > 0}
Tips:
- Always use the exact variable name as listed in the tables below.
- For arrays, use loops to display multiple items.
- For nested objects, use dot notation (e.g.,
{categories.0.name}
).