Moritz Schmidt 9 년 전
부모
커밋
f44df155ed
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      templatehelpers.go

+ 2 - 3
templatehelpers.go

@@ -6,17 +6,16 @@ import (
   _ "fmt"
 )
 
-// TODO outsource this and down to main template handler?
-// -> no ShowError/ShowNotification needed anymore?
-
 func ShowError(ctx *iris.Context) {
   params := ctx.Get("params").(map[string]string)
   ctx.Render(params["reqDir"] + "_box.html", params)
+  ctx.StopExecution()
 }
 
 func ShowNotification(ctx *iris.Context) {
   params := ctx.Get("params").(map[string]string)
   ctx.Render(params["reqDir"] + "_box.html", params)
+  ctx.StopExecution()
 }
 
 func InitPageParams(ctx *iris.Context) {