Refactor template render (#36438)

This commit is contained in:
wxiaoguang authored and GitHub committed 2026-01-24 05:11:49 +00:00
1 parent 47717d4435
commit 9de659437e
31 files changed
+475 -459

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ import (
// ReloadTemplates reloads all the templates
func ReloadTemplates(ctx *context.PrivateContext) {
err := templates.ReloadHTMLTemplates()
err := templates.ReloadAllTemplates()
if err != nil {
ctx.JSON(http.StatusInternalServerError, private.Response{
UserMsg: fmt.Sprintf("Template error: %v", err),