Initial commit.
This commit is contained in:
commit
63f43e568c
23 changed files with 1199 additions and 0 deletions
3
views/pages/about.gohtml
Normal file
3
views/pages/about.gohtml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{define "content"}}
|
||||
<p>{{.Data}}</p>
|
||||
{{end}}
|
||||
7
views/pages/contact.gohtml
Normal file
7
views/pages/contact.gohtml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{{define "content"}}
|
||||
<form method="POST">
|
||||
<label for="message">Message</label>
|
||||
<textarea id="message"></textarea>
|
||||
<input type="submit" value="Send"/>
|
||||
</form>
|
||||
{{end}}
|
||||
3
views/pages/errors/404.gohtml
Normal file
3
views/pages/errors/404.gohtml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{define "content"}}
|
||||
<p>Click here to return home</p>
|
||||
{{end}}
|
||||
3
views/pages/errors/500.gohtml
Normal file
3
views/pages/errors/500.gohtml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{define "content"}}
|
||||
<p>Please try again</p>
|
||||
{{end}}
|
||||
4
views/pages/home.gohtml
Normal file
4
views/pages/home.gohtml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{{define "content"}}
|
||||
Hello homepage {{upper "data"}}: {{ .Data }}
|
||||
<p><img src="{{file "gopher.png"}}" alt="Gopher"/></p>
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue