1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api, frontend: use triple square brackets for templating

This commit is contained in:
Adhityaa
2018-06-22 19:39:58 +05:30
parent 7e4fcb20a6
commit 781aeca6bb
7 changed files with 26 additions and 26 deletions

View File

@ -108,7 +108,7 @@ func initStaticRouter(router *mux.Router) error {
return err
}
t, err := template.New(page).Delims("<<<", ">>>").Parse(string(contents))
t, err := template.New(page).Delims("[[[", "]]]").Parse(string(contents))
if err != nil {
logger.Errorf("cannot parse %s%s template: %v", os.Getenv("STATIC"), file, err)
return err