修复模板注入问题

This commit is contained in:
dragon
2025-04-15 17:39:06 +08:00
parent 2e7e301858
commit d71bc43916

View File

@@ -1,10 +1,11 @@
package utils package utils
import ( import (
sprig "github.com/go-task/slim-sprig/v3"
"net/http" "net/http"
"strings" "strings"
"text/template" "text/template"
sprig "github.com/go-task/slim-sprig/v3"
) )
func NewTemplateInject(r *http.Request, def map[string]any) map[string]any { func NewTemplateInject(r *http.Request, def map[string]any) map[string]any {