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

11
index.html Normal file
View file

@ -0,0 +1,11 @@
{{template "header.html"}}
<h1>Imperial Library of Trantor</h1>
<form action="/search/">
<input type="search" name="q" />
<input type="submit" value="Search">
</form>
<p>Search on {{.}} books.</p>
<p><img src="/img/library.jpg" alt="library" /></p>
{{template "footer.html"}}