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/") {