func (v *View) Render(data interface{}) ([]byte, error) {
	var b bytes.Buffer
	w := bufio.NewWriter(&b)

	err := v.template.ExecuteTemplate(w, v.layout, data)
	if err != nil {
		return nil, err
	}

	w.Flush()
	return b.Bytes(), nil
}
// Render generates HTML output from the view
Render generates HTML output from the view
// Render generates HTML output from the view
func (v *View) Render(data interface{}) ([]byte, error) {
	var b bytes.Buffer
	w := bufio.NewWriter(&b)
	err := v.template.ExecuteTemplate(w, v.layout, data)
	if err != nil {
		return nil, err
	}
	w.Flush()
	return b.Bytes(), nil
}
func ( v * View ) Render ( data interface { } ) ( [ ] byte , error ) { var b bytes . Buffer w := bufio . NewWriter ( & b ) err := v . template . ExecuteTemplate ( w , v . layout , data ) if err != nil { return nil , err } w . Flush ( ) return b . Bytes ( ) , nil }
Render generates HTML output from the view
Render generates HTML output from the view