add template structure to aerc-templates(7)

This commit is contained in:
Reto Brunner 2020-04-26 12:33:26 +02:00
parent 2632a1a8ad
commit 94ce215e58

View file

@ -6,8 +6,25 @@ aerc-templates - template file specification for *aerc*(1)
# SYNOPSIS # SYNOPSIS
aerc uses the go "text/template" package for the template parsing aerc uses the go "text/template" package for the template parsing.
which supports basic go lang operations. Refer to the go documentation for the general syntax.
Template files are composed of headers, followed by a newline, followed by the
body text.
Example:
```
X-Clacks-Overhead: GNU Terry Pratchett
Hello,
Greetings,
Chuck
```
If you have a template that doesn't add any header, it *must* be preceded by a
newline, to avoid parsing parts of the body as header text.
# MESSAGE DATA # MESSAGE DATA