about summary refs log tree commit diff stats
path: root/internal/outputs
diff options
context:
space:
mode:
authorAlan Pearce2025-01-25 21:50:20 +0100
committerAlan Pearce2025-01-25 21:50:20 +0100
commit93c01942cb379b448dafab7ceffd78c005772928 (patch)
treecc2ea749569677ed8a283772551c8cb9d4350817 /internal/outputs
parent160a6e5084ed3c2a6d9ec3831325d3607cc222c1 (diff)
downloadwebsite-93c01942cb379b448dafab7ceffd78c005772928.tar.lz
website-93c01942cb379b448dafab7ceffd78c005772928.tar.zst
website-93c01942cb379b448dafab7ceffd78c005772928.zip
builder:make getHTMLStyleHash output-independent
Diffstat (limited to 'internal/outputs')
-rw-r--r--internal/outputs/files.go4
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 {