修复模板注入问题
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user