Closed
Description
This is a repost of #20523 with, hopefully, a more clear description.
Go templates currently do not support the break
nor the continue
keyword -- which surprises people trying a construct similar to the one below.
{{ range $i, $e := .SomeSlice }}
{{ if gt $i 2 }}
{{ break }}
{{ end }}
{{ $e }}
{{ end }}
/cc @igramnet