Browse Source

Drop define in templates

Just use the full filename instead, this is simpler and more explicit.
master
Simon Ser 4 years ago
parent
commit
a176409933
No known key found for this signature in database GPG Key ID: FDE7BE0E88F5E48
6 changed files with 8 additions and 12 deletions
  1. +2
    -2
      public/compose.html
  2. +0
    -2
      public/foot.html
  3. +0
    -2
      public/head.html
  4. +2
    -2
      public/login.html
  5. +2
    -2
      public/mailbox.html
  6. +2
    -2
      public/message.html

+ 2
- 2
public/compose.html 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"}}

+ 0
- 2
public/foot.html View File

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

+ 0
- 2
public/head.html 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}}

+ 2
- 2
public/login.html 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"}}

+ 2
- 2
public/mailbox.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"}}

+ 2
- 2
public/message.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"}}

Loading…
Cancel
Save