Cody Joyce 2 ماه پیش
والد
کامیت
b91fdd5f5e
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      render/render.go

+ 3 - 1
render/render.go

@@ -13,7 +13,9 @@ import (
 type Props map[string]any
 type Funcs = template.FuncMap
 
-var Include func(req *srv.Req, props Props, funcs Funcs)
+func include(req *srv.Req, props Props, funcs Funcs) {}
+
+var Include = include
 
 func Template(fp string, req *srv.Req, propFunc ...interface{}) string {
 	if !strings.Contains(fp, "app/") {