// MustLoadTemplate asserts that a LoadTemplate call must succeed or be dealt with via the http.ResponseWriter
MustLoadTemplate asserts that a LoadTemplate call must succeed or be dealt with via the http.ResponseWriter
// MustLoadTemplate asserts that a LoadTemplate call must succeed or be dealt with via the http . ResponseWriter
func (tr *Renderer) MustLoadTemplate(w http.ResponseWriter, r *http.Request, view string, data map[string]interface{}) {
	err := tr.LoadTemplate(w, r, view, data)
	if err != nil {
		logrus.Errorf("Unable to load template: %s, err: %s", view, err)
		http.Error(w, "unable to load template", http.StatusInternalServerError)
		return
	}
}
func ( tr * Renderer ) MustLoadTemplate ( w http . ResponseWriter , r * http . Request , view string , data map [ string ] interface { } ) { err := tr . LoadTemplate ( w , r , view , data ) if err != nil { logrus . Errorf ( " " , view , err ) http . Error ( w , " " , http . StatusInternalServerError ) return } }
MustLoadTemplate asserts that a LoadTemplate call must succeed or be dealt with via the http.ResponseWriter
MustLoadTemplate asserts that a LoadTemplate call must succeed or be dealt with via the http . ResponseWriter