From 1f9fe0b169c1cf458049b85d7fcee4236f06e5d9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 10 Jun 2020 22:46:42 +0200 Subject: Workaround template functions not loaded This is a hacky workaround to make things work until we find a better solution. Closes: https://todo.sr.ht/~emersion/alps/96 --- plugins/carddav/plugin.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'plugins/carddav') diff --git a/plugins/carddav/plugin.go b/plugins/carddav/plugin.go index 225c98f..ae1ab14 100644 --- a/plugins/carddav/plugin.go +++ b/plugins/carddav/plugin.go @@ -4,7 +4,6 @@ import ( "fmt" "net/http" "net/url" - "strings" "git.sr.ht/~emersion/alps" alpsbase "git.sr.ht/~emersion/alps/plugins/base" @@ -112,12 +111,6 @@ func newPlugin(srv *alps.Server) (alps.Plugin, error) { registerRoutes(p) - p.TemplateFuncs(map[string]interface{}{ - "join": func(l []string, sep string) string { - return strings.Join(l, sep) - }, - }) - p.Inject("compose.html", func(ctx *alps.Context, _data alps.RenderData) error { data := _data.(*alpsbase.ComposeRenderData) -- cgit v1.2.3