diff --git a/pkg/config/lazyTools.go b/pkg/config/lazyTools.go index 88aecd5..3767df1 100644 --- a/pkg/config/lazyTools.go +++ b/pkg/config/lazyTools.go @@ -86,6 +86,8 @@ func (t *LazyTools) makeFuncMap( } else { filesRoot = filepath.Join(filesRoot, filesDir) } + } else { + filesRoot = filepath.Join(filesRoot, "files") } file := func(app, path string) (string, error) { diff --git a/pkg/tmpltools/files.go b/pkg/tmpltools/files.go index ab93e63..f63ab68 100644 --- a/pkg/tmpltools/files.go +++ b/pkg/tmpltools/files.go @@ -8,7 +8,7 @@ import ( ) func File(cloudHome, app, path string) (string, error) { - p := filepath.Join(cloudHome, "files", app+path) + p := filepath.Join(cloudHome, app, path) data, err := os.ReadFile(p) log.LineBytes("EMBED", data) if err != nil {