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 --- aerc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index 1b51d6d3..12d94531 100644 --- a/aerc.go +++ b/aerc.go @@ -19,6 +19,7 @@ import ( "git.sr.ht/~sircmpwn/aerc/commands/terminal" "git.sr.ht/~sircmpwn/aerc/config" "git.sr.ht/~sircmpwn/aerc/lib" + "git.sr.ht/~sircmpwn/aerc/lib/templates" libui "git.sr.ht/~sircmpwn/aerc/lib/ui" "git.sr.ht/~sircmpwn/aerc/widgets" ) @@ -179,6 +180,9 @@ func main() { as.OnMailto = aerc.Mailto } + // set the aerc version so that we can use it in the template funcs + templates.SetVersion(Version) + close(initDone) for !ui.ShouldExit() { -- cgit