{namespace v=FluidTYPO3\Vhs\ViewHelpers} {filterFile -> v:format.substring(start: basePathLength)}

{f:translate(key: 'header.reports')}

{extensionKey}

{format -> v:format.case(case: 'ucfirst')}
{formatReports.json -> f:format.raw()}
{filePathAndFilename}
{metricName -> v:variable.set(name: 'title')} {v:variable.get(name: 'map.{message.severity}') -> v:variable.set(name: 'class')} {message.payload -> v:variable.convert(type: 'array') -> v:variable.set(name: 'payload')} {message.message -> f:format.printf(arguments: payload) -> v:variable.set(name: 'body')}
{f:if(condition: result.valid, then: 'ok', else: 'error') -> v:variable.set(name: 'class')} {f:if(condition: result.valid, then: 'All is well', else: result.error) -> v:variable.set(name: 'body')}
{title}
{body}