🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 033fc0b0dec153a3e05760ae9a5392997bba581b
Parent: dacb13073d21f021b3d4e3b358dad574e62593bc
Author: mcol <mcol@posteo.net>
Date: 2021-11-28 14:14:40 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-11-28 14:14:40 +0000

simplify genRepo

src/Repositories.hs Modified

@@ -209,9 +209,8 @@
     HashMap.HashMap Text (GVal RunRepo) ->
     Template ->
     ReaderT LgRepo IO ()
-genRepo output scope template = generate output' scope template
-  where
-    output' = output </> templatePath template
+genRepo output scope template =
+    generate (output </> templatePath template) scope template
 
 ----------------------------------------------------------------------------------------
 -- Targets -----------------------------------------------------------------------------