From 781aeca6bbe6018ced2db5642c8c580ff3ef1c05 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Fri, 22 Jun 2018 19:39:58 +0530 Subject: [PATCH] api, frontend: use triple square brackets for templating --- api/router_static.go | 2 +- frontend/dashboard.html | 14 +++++++------- frontend/forgot.html | 8 ++++---- frontend/login.html | 8 ++++---- frontend/logout.html | 4 ++-- frontend/reset-password.html | 8 ++++---- frontend/signup.html | 8 ++++---- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/api/router_static.go b/api/router_static.go index 7dffd6c..5096d8b 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -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 diff --git a/frontend/dashboard.html b/frontend/dashboard.html index 9d49c96..1cc8c7a 100644 --- a/frontend/dashboard.html +++ b/frontend/dashboard.html @@ -1,12 +1,12 @@ - - - - - - - + + + + + + + Commento: Dashboard diff --git a/frontend/forgot.html b/frontend/forgot.html index 803edd0..bb341c2 100644 --- a/frontend/forgot.html +++ b/frontend/forgot.html @@ -1,9 +1,9 @@ - - - + + + Commento: Reset your Password @@ -29,5 +29,5 @@ - <<<.Footer>>> + [[[.Footer]]] diff --git a/frontend/login.html b/frontend/login.html index 141c93d..ed956a6 100644 --- a/frontend/login.html +++ b/frontend/login.html @@ -1,9 +1,9 @@ - - - + + + Commento: Login @@ -47,5 +47,5 @@ - <<<.Footer>>> + [[[.Footer]]] diff --git a/frontend/logout.html b/frontend/logout.html index 52b17f8..bb8bea3 100644 --- a/frontend/logout.html +++ b/frontend/logout.html @@ -1,7 +1,7 @@ - - + + - - + + + Commento: Reset your Password @@ -37,5 +37,5 @@ - <<<.Footer>>> + [[[.Footer]]] diff --git a/frontend/signup.html b/frontend/signup.html index e2169cc..79702df 100644 --- a/frontend/signup.html +++ b/frontend/signup.html @@ -1,9 +1,9 @@ - - - + + + Commento: Signup @@ -59,5 +59,5 @@ - <<<.Footer>>> + [[[.Footer]]]