为 filter 添加全局配置支持

This commit is contained in:
ExplodingDragon
2025-11-18 23:56:59 +08:00
parent f4ca1377ca
commit 268f21c2af
15 changed files with 340 additions and 285 deletions

View File

@@ -29,11 +29,10 @@ type Config struct {
Page ConfigPage `yaml:"page"` // 页面配置
Render ConfigRender `yaml:"render"` // 渲染配置
Proxy ConfigProxy `yaml:"proxy"` // 反向代理配置
StaticDir string `yaml:"static"` // 静态资源提供路径
Filters map[string]map[string]any `yaml:"filters"` // 渲染器配置
pageErrNotFound, pageErrUnknown *template.Template
}