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> <h1>koushin</h1>
@ -23,4 +23,4 @@
<input type="submit" value="Send"> <input type="submit" value="Send">
</form> </form>
{{template "foot"}} {{template "foot.html"}}

View file

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

View file

@ -1,4 +1,3 @@
{{define "head"}}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -7,4 +6,3 @@
<link rel="stylesheet" href="/assets/style.css"> <link rel="stylesheet" href="/assets/style.css">
</head> </head>
<body> <body>
{{end}}

View file

@ -1,4 +1,4 @@
{{template "head"}} {{template "head.html"}}
<h1>koushin</h1> <h1>koushin</h1>
@ -11,4 +11,4 @@
<input type="submit" value="Login"> <input type="submit" value="Login">
</form> </form>
{{template "foot"}} {{template "foot.html"}}

View file

@ -1,4 +1,4 @@
{{template "head"}} {{template "head.html"}}
<h1>koushin</h1> <h1>koushin</h1>
@ -42,4 +42,4 @@
<p>Mailbox is empty.</p> <p>Mailbox is empty.</p>
{{end}} {{end}}
{{template "foot"}} {{template "foot.html"}}

View file

@ -1,4 +1,4 @@
{{template "head"}} {{template "head.html"}}
<h1>koushin</h1> <h1>koushin</h1>
@ -55,4 +55,4 @@
<a href="{{.Message.Uid}}/raw?part={{.PartPath}}">Download</a> <a href="{{.Message.Uid}}/raw?part={{.PartPath}}">Download</a>
{{end}} {{end}}
{{template "foot"}} {{template "foot.html"}}