From ab2f076c5bf546f8aca9910b2b61a1b5a67361bc Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 5 Jan 2020 18:39:47 +0100 Subject: compiler: distinguish item and resource paths GitHub: closes #13 --- compiler/src/Compiler.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'compiler/src/Compiler.hs') diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs index b9f52e5..d0ec003 100644 --- a/compiler/src/Compiler.hs +++ b/compiler/src/Compiler.hs @@ -43,7 +43,7 @@ import Files , ensureParentDir , isOutdated ) import Processors - ( dirFileProcessor, itemFileProcessor, thumbnailFileProcessor + ( itemFileProcessor, thumbnailFileProcessor , skipCached, withCached ) @@ -111,7 +111,7 @@ compileGallery inputDirPath outputDirPath rebuildAll = let itemProc = itemProcessor (pictureMaxResolution config) cache let thumbnailProc = thumbnailProcessor (thumbnailMaxResolution config) cache - let galleryBuilder = buildGalleryTree dirProcessor itemProc thumbnailProc (implicitDirectoryTag config) + let galleryBuilder = buildGalleryTree itemProc thumbnailProc (implicitDirectoryTag config) resources <- galleryBuilder (galleryName config) inputTree galleryCleanupResourceDir resources outputDirPath @@ -123,7 +123,6 @@ compileGallery inputDirPath outputDirPath rebuildAll = outputIndex = outputDirPath indexFile outputViewerConf = outputDirPath viewerConfFile - dirProcessor = dirFileProcessor inputDirPath outputDirPath itemsDir itemProcessor maxRes cache = itemFileProcessor maxRes cache inputDirPath outputDirPath itemsDir thumbnailProcessor thumbRes cache = -- cgit v1.2.3