18 lines
320 B
Go
18 lines
320 B
Go
|
package templates
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func (T Templates) NewRepl(err error, w http.ResponseWriter, r *http.Request, title string, explanation string, remediation string) {
|
||
|
e := T.internalNewSplain(
|
||
|
title,
|
||
|
explanation,
|
||
|
remediation,
|
||
|
500,
|
||
|
)
|
||
|
T.internalTemplateErrorSplash(w, r, e)
|
||
|
fmt.Println(err)
|
||
|
}
|