Restructure templates to use includes
This commit is contained in:
parent
8e4a37b558
commit
18454021c3
8 changed files with 19 additions and 14 deletions
11
index.html
Normal file
11
index.html
Normal 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"}}
|
Reference in a new issue