im rendering a response.
in my code I passed a Slice with structs to display some info
in one place i use a select and the options are rendered with a range method
package main
import ("fmt"
"html/template"
"os"
)
func main() {
lista:=[3]string{"one","two","tree"}
fmt.Println("Hello, playground")
a:=`<script type="text/text">{{range .}} <option></option>hi{{end}}</script>
<script type="text/text">{{range .}} <option>hi!{{end}}</script> <script type="text/text">{{range .}} <option>hi!{{end}}</script> <script type="text/text">{{range .}} <option>hi!{{end}}</script>`
tmp,_:=template.New("tmp").Parse(a)
tmp.Execute(os.Stdout,lista)
}
EDIT
I replicated the issue http://play.golang.org/p/d62J3TOc1N if you add the or any other closure tag (starting with /) the render won't happened