From 93c01942cb379b448dafab7ceffd78c005772928 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 25 Jan 2025 21:50:20 +0100 Subject: builder:make getHTMLStyleHash output-independent --- internal/outputs/files.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/outputs') diff --git a/internal/outputs/files.go b/internal/outputs/files.go index 3425d93..e8da259 100644 --- a/internal/outputs/files.go +++ b/internal/outputs/files.go @@ -70,6 +70,10 @@ func (f *FilesOutput) CopyRecursive(src string) error { }) } +func (f *FilesOutput) Open(filename string) (io.ReadCloser, error) { + return os.Open(filepath.Join(f.outputDirectory, filename)) +} + func (f *FilesOutput) OutputToFile(output io.Reader, filename string) error { fn := path.Join(f.outputDirectory, filename) if err := f.mkdirp(filepath.Dir(filename)); err != nil { -- cgit 1.4.1