generated from ElnuDev/go-project
Implement route handling
This commit is contained in:
parent
fb045b9276
commit
36710478f2
3 changed files with 47 additions and 13 deletions
|
@ -1,3 +1,4 @@
|
|||
{{- define "search" -}}
|
||||
<p><i>{{ if eq .Count 0 }}No results{{ else }}{{ .Count }} result{{ if ne .Count 1}}s{{ end }}{{ end }}.</i></p>
|
||||
{{- range .ExactResults -}}
|
||||
{{- template "word" . -}}
|
||||
|
@ -5,4 +6,6 @@
|
|||
<hr>
|
||||
{{ range .OtherResults -}}
|
||||
{{ template "word" . }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- template "search" . -}}
|
Reference in a new issue