This commit is contained in:
Mirek Kratochvil 2023-05-27 20:57:05 +02:00
parent 08742b6b31
commit 31f54f94ba

View file

@ -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