code: func (r *RenderTemplateResult) renderError(err error, req *Request, resp *Response) {
  	compileError, found := err.(*Error)
  	if !found {
  		var templateContent []string
  		templateName, line, description := ParseTemplateError(err)
  		if templateName == "" {
  			templateLog.Info("Cannot determine template name to render error", "error", err)
  			templateName = r.Template.Name()
  			templateContent = r.Template.Content()
  
  		} else {
  			lang, _ := r.ViewArgs[CurrentLocaleViewArg].(string)
  			if tmpl, err := MainTemplateLoader.TemplateLang(templateName, lang); err == nil {
  				templateContent = tmpl.Content()
  			} else {
  				templateLog.Info("Unable to retreive template ", "error", err)
  			}
  		}
  		compileError = &Error{
  			Title:       "Template Execution Error",
  			Path:        templateName,
  			Description: description,
  			Line:        line,
  			SourceLines: templateContent,
  		}
  	}
  	resp.Status = 500
  	resultsLog.Errorf("render: Template Execution Error (in %s): %s", compileError.Path, compileError.Description)
  	ErrorResult{r.ViewArgs, compileError}.Apply(req, resp)
  }
docs: // Render the error in the response