break
Syntax
break
This template code:
{{ $s := slice "foo" "bar" "baz" }}
{{ range $s }}
  {{ if eq . "bar" }}
    {{ break }}
  {{ end }}
  <p>{{ . }}</p>
{{ end }}
Is rendered to:
<p>foo</p>
See Go’s text/template documentation for more information.