From a176409933129eccdcf06ef131c76aee497b53aa Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 Dec 2019 14:59:58 +0100 Subject: Drop define in templates Just use the full filename instead, this is simpler and more explicit. --- public/compose.html | 4 ++-- public/foot.html | 2 -- public/head.html | 2 -- public/login.html | 4 ++-- public/mailbox.html | 4 ++-- public/message.html | 4 ++-- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/public/compose.html b/public/compose.html index e35b0fd..2a52675 100644 --- a/public/compose.html +++ b/public/compose.html @@ -1,4 +1,4 @@ -{{template "head"}} +{{template "head.html"}}

koushin

@@ -23,4 +23,4 @@ -{{template "foot"}} +{{template "foot.html"}} diff --git a/public/foot.html b/public/foot.html index d92a512..b605728 100644 --- a/public/foot.html +++ b/public/foot.html @@ -1,4 +1,2 @@ -{{define "foot"}} -{{end}} diff --git a/public/head.html b/public/head.html index c8c6b42..35dda42 100644 --- a/public/head.html +++ b/public/head.html @@ -1,4 +1,3 @@ -{{define "head"}} @@ -7,4 +6,3 @@ -{{end}} diff --git a/public/login.html b/public/login.html index 54cb341..f193c21 100644 --- a/public/login.html +++ b/public/login.html @@ -1,4 +1,4 @@ -{{template "head"}} +{{template "head.html"}}

koushin

@@ -11,4 +11,4 @@ -{{template "foot"}} +{{template "foot.html"}} diff --git a/public/mailbox.html b/public/mailbox.html index 722aae0..ddd1260 100644 --- a/public/mailbox.html +++ b/public/mailbox.html @@ -1,4 +1,4 @@ -{{template "head"}} +{{template "head.html"}}

koushin

@@ -42,4 +42,4 @@

Mailbox is empty.

{{end}} -{{template "foot"}} +{{template "foot.html"}} diff --git a/public/message.html b/public/message.html index f653057..729937d 100644 --- a/public/message.html +++ b/public/message.html @@ -1,4 +1,4 @@ -{{template "head"}} +{{template "head.html"}}

koushin

@@ -55,4 +55,4 @@ Download {{end}} -{{template "foot"}} +{{template "foot.html"}} -- cgit v1.2.3