Drop define in templates

Just use the full filename instead, this is simpler and more explicit.
This commit is contained in:
Simon Ser 2019-12-09 14:59:58 +01:00
parent 61ffc105fd
commit a176409933
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 8 additions and 12 deletions

View file

@ -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"}}

View file

@ -1,4 +1,2 @@
{{define "foot"}}
</body>
</html>
{{end}}

View file

@ -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}}

View file

@ -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"}}

View file

@ -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"}}

View file

@ -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"}}