Reihen Page -- all kinds of stuff

This commit is contained in:
Simon Martens
2025-02-14 12:05:34 +01:00
parent 8d00f6a44d
commit 6aeb4c0548
18 changed files with 369 additions and 172 deletions

View File

@@ -33,10 +33,8 @@ func (r *TemplateRegistry) Register(path string, fs fs.FS) *TemplateRegistry {
return NewTemplateRegistry(merged_fs.MergeMultiple(fs, r.routesFS))
}
func (r *TemplateRegistry) Reset() error {
r.cache.Clear()
r.once = sync.Once{}
return nil
func (r *TemplateRegistry) Reset() *TemplateRegistry {
return NewTemplateRegistry(r.routesFS)
}
func (r *TemplateRegistry) Load() error {