Basic search and display working

This commit is contained in:
Las Zenow 2012-07-30 23:23:38 +02:00
parent 17cb7765c1
commit c64226ffb9
12 changed files with 325 additions and 65 deletions

13
search.html Normal file
View file

@ -0,0 +1,13 @@
<h1>Search</h1>
<form action="/search/">
<input type="search" name="q" value="{{.Search}}"/>
<input type="submit" value="Search">
</form>
<ul>
{{with .Books}}
{{range .}}
<li><img src="{{.CoverSmall}}" alt="{{.Title}}" /><a href="/book/{{.Title}}">{{.Title}}</a> - {{range .Author}}{{.}}, {{end}}</li>
{{end}}
{{end}}
</ul>