copy all files from kodata to output
1 file changed, 10 insertions(+), 0 deletions(-)
changed files
M domain/content/builder/template/template.go → domain/content/builder/template/template.go
@@ -4,6 +4,7 @@ import ( "bytes" "encoding/xml" "io" + "io/fs" "text/template" "github.com/PuerkitoBio/goquery"@@ -85,6 +86,15 @@ return nil, fault.Wrap(err) } return buf, nil +} + +func ListFiles() ([]fs.DirEntry, error) { + kodataStaticFiles, err := templates.Files.(fs.ReadDirFS).ReadDir(".") + if err != nil { + return nil, fault.Wrap(err, fmsg.With("could not read kodata static files")) + } + + return kodataStaticFiles, nil } func CopyFile(filename string, w io.Writer) error {