Commit d831097c authored by Armin Bernstetter's avatar Armin Bernstetter

fixed test and added warning

parent ac9bf448
......@@ -119,7 +119,7 @@ choice. Beware that file updates are not propagated into the container so
Prints information about the current project's directories, the targets
(files which will be generated) and the meta data options which are found in
top level `decker.yaml` files.
top level `decker.yaml` file.
- `decker html`
......
......@@ -119,7 +119,9 @@ readMetaData dir = do
meta <-
if exists
then decodeYaml file
else return (Y.object [])
else do
putStrLn "WARNING: There is no top level 'decker.yaml' file!"
return (Y.object [])
return $ toPandocMeta meta
getMetaInt :: String -> Meta -> Maybe Int
......
......@@ -27,7 +27,7 @@ main = do
deckTemplate <- B.readFile (dirs ^. project </> "resource/template/deck.html")
--
-- metaFiles <- globDir1 (compile "**/*-meta.yaml") (dirs ^. project)
metaFile <- dirs ^. project </> "decker.yaml"
let metaFile = dirs ^. project </> "decker.yaml"
--
hspec $
--
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment