|
|
|
@ -20,7 +20,6 @@ var (
@@ -20,7 +20,6 @@ var (
|
|
|
|
|
|
|
|
|
|
func topWrapper(r *http.Request) string { |
|
|
|
|
defer log.PanicSafe() |
|
|
|
|
log.LogInfo(fmt.Sprintf("%s called topWrapper", getSessionIdentifier(r))) |
|
|
|
|
headerTemplate, err := ioutil.ReadFile("./static/header.tpl") |
|
|
|
|
if err != nil { |
|
|
|
|
log.LogError(fmt.Sprintf("Unable to open header template: ```%+v```", err)) |
|
|
|
@ -38,7 +37,6 @@ func topWrapper(r *http.Request) string {
@@ -38,7 +37,6 @@ func topWrapper(r *http.Request) string {
|
|
|
|
|
|
|
|
|
|
func bodyWrapper(r *http.Request, template string) string { |
|
|
|
|
defer log.PanicSafe() |
|
|
|
|
log.LogInfo(fmt.Sprintf("%s called bodyWrapper", getSessionIdentifier(r))) |
|
|
|
|
bodyTemplate, err := ioutil.ReadFile(fmt.Sprintf("./static/%+v.tpl", template)) |
|
|
|
|
if err != nil { |
|
|
|
|
log.LogError(fmt.Sprintf("Attempt to load %s.tpl failed. ```%+v```", template, err)) |
|
|
|
|