code: 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()
  }
docs: // RenderView renders a template using the provided template and vars struct
  // and returns the rendered tamplate