aboutsummaryrefslogtreecommitdiff
path: root/plugins/carddav
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-06-10 22:46:42 +0200
committerSimon Ser <contact@emersion.fr>2020-06-10 22:46:42 +0200
commit1f9fe0b169c1cf458049b85d7fcee4236f06e5d9 (patch)
treeaec7fdf12b1011dca8f39aae038ac8d0d1de9a50 /plugins/carddav
parent522454e00986053c86060f8a03d39a626c540652 (diff)
downloadalps-1f9fe0b169c1cf458049b85d7fcee4236f06e5d9.tar.gz
alps-1f9fe0b169c1cf458049b85d7fcee4236f06e5d9.zip
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
Diffstat (limited to 'plugins/carddav')
-rw-r--r--plugins/carddav/plugin.go7
1 files changed, 0 insertions, 7 deletions
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)