This adds a new Template result format that uses Handlebars.Net for flexible report customization. Users can now create fully customized reports using Handlebars syntax, replacing the limited token-based approach. Features: - New Template export format with Handlebars support - Built-in templates: default, email, html, slack - Custom template support via file path or inline content - Helper functions for formatting: formatSize, formatDuration, formatDate, eq, statusClass, eachProperty - Full access to result data, log lines, and exceptions
38 lines
648 B
Handlebars
38 lines
648 B
Handlebars
Duplicati {{OperationName}} Report
|
|
======================================
|
|
|
|
Status: {{ParsedResult}}
|
|
{{#if BackupName}}Backup: {{BackupName}}{{/if}}
|
|
{{#if MachineName}}Machine: {{MachineName}}{{/if}}
|
|
{{#if MachineId}}Machine ID: {{MachineId}}{{/if}}
|
|
|
|
{{#if Data}}
|
|
Results:
|
|
--------
|
|
{{#eachProperty Data}}
|
|
{{Key}}: {{Value}}
|
|
{{/eachProperty}}
|
|
{{/if}}
|
|
|
|
{{#if Extra}}
|
|
Additional Information:
|
|
-----------------------
|
|
{{#eachProperty Extra}}
|
|
{{Key}}: {{Value}}
|
|
{{/eachProperty}}
|
|
{{/if}}
|
|
|
|
{{#if LogLines}}
|
|
Log Messages:
|
|
-------------
|
|
{{#each LogLines}}
|
|
{{this}}
|
|
{{/each}}
|
|
{{/if}}
|
|
|
|
{{#if Exception}}
|
|
Error Details:
|
|
--------------
|
|
{{Exception}}
|
|
{{/if}}
|