You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
393 B

{{define "head"}}
<title>Search result | {{.SearchTerm}}</title>
{{end}}
{{define "body"}}
<form action="/search" method="get">
<label>
Search term:
<input type="text" name="term" value="{{.SearchTerm}}" required>
</label>
</form>
{{range .Results}}
<a href="/view?id={{.Id}}">{{.Id}} - {{.Title}}</a><br />
{{end}}
{{end}}