blob: eb8f7b113a6f77beba6c850a38388222f8553e37 [file] [log] [blame]
// +build ignore,OMIT
package main
import (
"html/template"
"log"
"os"
)
var tmpl = template.Must(template.New("tmpl").Parse(`
<ul>
{{range . -}}
<li>{{.}}</li>
{{end -}}
</ul>
`))
func main() {
err := tmpl.Execute(os.Stdout, []string{"one", "two", "three"})
if err != nil {
log.Fatal(err)
}
}