Restore local live reloading of templates.
This commit is contained in:
parent
29fbadbadd
commit
5f877c3d38
5 changed files with 63 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue