Restore local live reloading of templates.

This commit is contained in:
mikestefanello 2023-12-12 20:07:58 -05:00
parent 29fbadbadd
commit 5f877c3d38
5 changed files with 63 additions and 21 deletions

View file

@ -37,7 +37,7 @@ func TestTemplateRenderer(t *testing.T) {
expectedTemplates := make(map[string]bool)
expectedTemplates["htmx"+config.TemplateExt] = true
expectedTemplates["error"+config.TemplateExt] = true
components, err := templates.Templates.ReadDir("components")
components, err := templates.Get().ReadDir("components")
require.NoError(t, err)
for _, f := range components {
expectedTemplates[f.Name()] = true