code: func (r *RenderTemplateResult) renderOutput(wr io.Writer) (err error) {
  	defer func() {
  		if rerr := recover(); rerr != nil {
  			resultsLog.Error("ApplyBytes: panic recovery", "recover-error", rerr)
  			err = fmt.Errorf("Template Execution Panic in %s:\n%s", r.Template.Name(), rerr)
  		}
  	}()
  	err = r.Template.Render(wr, r.ViewArgs)
  	return
  }
docs: // Output the template to the writer, catch any panics and return as an error