Restructure templates to use includes

This commit is contained in:
Las Zenow 2012-08-15 12:00:44 +02:00
parent 8e4a37b558
commit 18454021c3
8 changed files with 19 additions and 14 deletions

View file

@ -1,3 +1,5 @@
{{template "header.html"}}
<h1>Search</h1>
<form action="/search/">
<input type="search" name="q" value="{{.Search}}"/>
@ -17,3 +19,5 @@
<p>
{{if .Prev}}<a href="{{.Prev}}">&lt;Prev</a> {{end}}
{{if .Next}}<a href="{{.Next}}">Next&gt;</a>{{end}}</p>
{{template "footer.html"}}