@if (error()) { }

Caddyfile

{{ lineCount() }} lignes{{ dirty() ? ' · modifications non enregistrées' : '' }}

@if (output(); as out) {

{{ out.ok ? 'Configuration appliquée.' : 'Caddy a refusé la configuration : le fichier précédent a été remis en place.' }}

@if (out.text && out.text !== 'OK') {
{{ out.text }}
}
}
@if (viewed(); as version) {

Version #{{ version.id }} · {{ dateTime(version.createdAt) }}

{{ version.content }}
}