goanna/controller.go
func RenderTemplate(t *template.Template, vars interface{}) []byte {
	out := bytes.NewBuffer(nil)
	err := t.Execute(out, vars)
	if err != nil {
		panic(err.Error())
	}
	return out.Bytes()
}
func RenderTemplate(t *template.Template, vars interface{}) []byte {
	out := bytes.NewBuffer(nil)
	err := t.Execute(out, vars)
	if err != nil {
		panic(err.Error())
	}
	return out.Bytes()
}
func RenderTemplate ( t * template . Template , vars interface { } ) [ ] byte { out := bytes . NewBuffer ( nil ) err := t . Execute ( out , vars ) if err != nil { panic ( err . Error ( ) ) } return out . Bytes ( ) }
// RenderView renders a template using the provided template and vars struct
// and returns the rendered tamplate
RenderView renders a template using the provided template and vars struct and returns the rendered tamplate