aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-09 14:59:58 +0100
committerSimon Ser <contact@emersion.fr>2019-12-09 15:00:01 +0100
commita176409933129eccdcf06ef131c76aee497b53aa (patch)
tree89549a14484ee805016d73ab00ca131077b16a7d /public
parent61ffc105fd8480b0af4151e3fadb0751d38bea82 (diff)
downloadalps-a176409933129eccdcf06ef131c76aee497b53aa.tar.gz
alps-a176409933129eccdcf06ef131c76aee497b53aa.zip
Drop define in templates
Just use the full filename instead, this is simpler and more explicit.
Diffstat (limited to 'public')
-rw-r--r--public/compose.html4
-rw-r--r--public/foot.html2
-rw-r--r--public/head.html2
-rw-r--r--public/login.html4
-rw-r--r--public/mailbox.html4
-rw-r--r--public/message.html4
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"}}
<h1>koushin</h1>
@@ -23,4 +23,4 @@
<input type="submit" value="Send">
</form>
-{{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"}}
</body>
</html>
-{{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"}}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -7,4 +6,3 @@
<link rel="stylesheet" href="/assets/style.css">
</head>
<body>
-{{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"}}
<h1>koushin</h1>
@@ -11,4 +11,4 @@
<input type="submit" value="Login">
</form>
-{{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"}}
<h1>koushin</h1>
@@ -42,4 +42,4 @@
<p>Mailbox is empty.</p>
{{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"}}
<h1>koushin</h1>
@@ -55,4 +55,4 @@
<a href="{{.Message.Uid}}/raw?part={{.PartPath}}">Download</a>
{{end}}
-{{template "foot"}}
+{{template "foot.html"}}