Drop define in templates
Just use the full filename instead, this is simpler and more explicit.
This commit is contained in:
parent
61ffc105fd
commit
a176409933
6 changed files with 8 additions and 12 deletions
|
@ -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"}}
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
{{define "foot"}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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"}}
|
||||
|
|
|
@ -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"}}
|
||||
|
|
|
@ -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"}}
|
||||
|
|
Loading…
Reference in a new issue