diff options
author | pacien | 2019-12-28 19:04:54 +0100 |
---|---|---|
committer | pacien | 2019-12-28 19:04:54 +0100 |
commit | 538996dc84b03eab1429ddd693334673b857c005 (patch) | |
tree | 65b8c0e31895b6a96d559e73a038ebcf6395dbf6 /compiler/src/Compiler.hs | |
parent | c002224309f0149e7ef03b3037d1549f770f2f09 (diff) | |
download | ldgallery-538996dc84b03eab1429ddd693334673b857c005.tar.gz |
compiler: parameterise gallery name
Diffstat (limited to 'compiler/src/Compiler.hs')
-rw-r--r-- | compiler/src/Compiler.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs index 2584570..dbe6cae 100644 --- a/compiler/src/Compiler.hs +++ b/compiler/src/Compiler.hs | |||
@@ -38,7 +38,7 @@ import qualified Data.Aeson as JSON | |||
38 | import Config | 38 | import Config |
39 | import Input (decodeYamlFile, readInputTree) | 39 | import Input (decodeYamlFile, readInputTree) |
40 | import Resource (ResourceTree, buildResourceTree, cleanupResourceDir) | 40 | import Resource (ResourceTree, buildResourceTree, cleanupResourceDir) |
41 | import Gallery (buildGalleryTree) | 41 | import Gallery (buildGallery) |
42 | import Files | 42 | import Files |
43 | ( FileName | 43 | ( FileName |
44 | , FSNode(..) | 44 | , FSNode(..) |
@@ -81,7 +81,7 @@ compileGallery inputDirPath outputDirPath rebuildAll = | |||
81 | 81 | ||
82 | cleanupResourceDir resourceTree outputDirPath | 82 | cleanupResourceDir resourceTree outputDirPath |
83 | 83 | ||
84 | buildGalleryTree resourceTree | 84 | buildGallery (galleryName config) resourceTree |
85 | & writeJSON outputIndex | 85 | & writeJSON outputIndex |
86 | 86 | ||
87 | viewer fullConfig | 87 | viewer fullConfig |