clean up
This commit is contained in:
parent
08742b6b31
commit
31f54f94ba
3
site.hs
3
site.hs
|
@ -127,9 +127,10 @@ processLink base l = do
|
|||
pageFilename :: FilePath -> Site FilePath
|
||||
pageFilename p = indexFilename $ "page" </> p
|
||||
|
||||
checkedSubstitute :: Mu.Template -> Y.Value -> IO T.Text
|
||||
checkedSubstitute t v = do
|
||||
let (es, txt) = Mu.checkedSubstitute t v
|
||||
io $ traverse_ (putStrLn . ("Error: " ++) . show) es
|
||||
traverse_ (putStrLn . ("Error: " ++) . show) es
|
||||
--null es `unless` error "template substitution problems"
|
||||
pure txt
|
||||
|
||||
|
|
Loading…
Reference in a new issue