From 6bd6690d80931062210d18f3e9855074707b03a8 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 2 May 2020 14:06:02 +0200 Subject: templates: add version func Fixes #316 --- doc/aerc-templates.7.scd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/aerc-templates.7.scd') diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd index ff5d4b5f..d0650123 100644 --- a/doc/aerc-templates.7.scd +++ b/doc/aerc-templates.7.scd @@ -125,6 +125,13 @@ aerc provides the following additional functions: {{dateFormat .Date "Mon Jan 2 15:04:05 -0700 MST 2006"}} ``` +*version* + Returns the version of aerc, which can be useful for things like X-Mailer. + + ``` + X-Mailer: aerc {{version}} + ``` + *Function chaining* All of the template functions can be chained together if needed. -- cgit