contacts.gohtml 338 B

12345678910
  1. {{ define "contacts" }}
  2. {{ if .state }}<p>Results in {{ .state }}</p>{{ end }}
  3. <ul>{{ range $name, $mail := .contacts }}
  4. <li><a href="mailto:{{$mail}}">{{ $name }}</a></li>
  5. {{- else -}}
  6. <li><em>No results found</em></li>
  7. {{ end }}
  8. </ul>
  9. {{ if .counter }}<p>Counter: {{ .counter }}</p>{{ end }}
  10. {{ end }}