diff options
author | Alan Pearce | 2025-01-25 21:50:20 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-25 21:50:20 +0100 |
commit | 93c01942cb379b448dafab7ceffd78c005772928 (patch) | |
tree | cc2ea749569677ed8a283772551c8cb9d4350817 /internal/outputs/files.go | |
parent | 160a6e5084ed3c2a6d9ec3831325d3607cc222c1 (diff) | |
download | website-93c01942cb379b448dafab7ceffd78c005772928.tar.lz website-93c01942cb379b448dafab7ceffd78c005772928.tar.zst website-93c01942cb379b448dafab7ceffd78c005772928.zip |
builder:make getHTMLStyleHash output-independent
Diffstat (limited to 'internal/outputs/files.go')
-rw-r--r-- | internal/outputs/files.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |