We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f0190 commit 1391ddbCopy full SHA for 1391ddb
1 file changed
internals/server/http.go
@@ -5,6 +5,7 @@ import (
5
"net/http"
6
"net/url"
7
"strconv"
8
+ "text/template"
9
"time"
10
11
"github.com/codeshelldev/gotl/pkg/logger"
@@ -108,7 +109,10 @@ func activityHandler(w http.ResponseWriter, req *http.Request) {
108
109
"PATH": URL.Path,
110
}
111
- query, err := templating.RenderTemplate("query", config.ENV.QUERY_PATTERN, variables)
112
+ templt := templating.CreateTemplateWithFunc("query", template.FuncMap{})
113
+ templt.Delims("{", "}")
114
+
115
+ query, err := templating.ParseTemplate(templt, config.ENV.QUERY_PATTERN, variables)
116
117
if err != nil {
118
logger.Error("Error building query: ", err.Error())
0 commit comments