frontend/templates/blocks/search.gotmpl (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | {{- template "main" . }}
{{- template "js" . }}
{{- define "main" }}
<label for="query">Search</label>
<form id="search" action="/options/results">
<input id="query" name="query" type="search" value="{{ .Query }}" />
<button>Search</button>
</form>
{{- with .Results }}
{{ block "results" . }}{{ end }}
{{- end }}
{{- end }}
{{- define "js" }}
<script src="/static/search.js" defer></script>
{{- end }}
|