@@ -26,7 +26,7 @@ main = do
26 } &= summary "WAI development web server"
26 } &= summary "WAI development web server"
27 runQuit p m f $ if y then determineHamletDeps else (const $ return [])
27 runQuit p m f $ if y then determineHamletDeps else (const $ return [])
29−data TempType = Hamlet | Cassius | Lucius | Julius | Widget
29+data TempType = Hamlet | Cassius | Lucius | Julius | Widget | Verbatim
30 deriving Show
30 deriving Show
32determineHamletDeps :: FilePath -> IO [FilePath]
32determineHamletDeps :: FilePath -> IO [FilePath]
@@ -39,6 +39,7 @@ determineHamletDeps x = do
40 go (Just (Hamlet, f)) = Just $ "hamlet/" ++ f ++ ".hamlet"
40 go (Just (Hamlet, f)) = Just $ "hamlet/" ++ f ++ ".hamlet"
41 go (Just (Widget, f)) = Just $ "hamlet/" ++ f ++ ".hamlet"
41 go (Just (Widget, f)) = Just $ "hamlet/" ++ f ++ ".hamlet"
42+ go (Just (Verbatim, f)) = Just f
42 go _ = Nothing
43 go _ = Nothing
43 parser = do
44 parser = do
44 ty <- (A.string "$(hamletFile " >> return Hamlet)
45 ty <- (A.string "$(hamletFile " >> return Hamlet)
@@ -51,6 +52,8 @@ determineHamletDeps x = do
51 <|> (A.string "$(Settings.luciusFile " >> return Lucius)
52 <|> (A.string "$(Settings.luciusFile " >> return Lucius)
52 <|> (A.string "$(Settings.juliusFile " >> return Julius)
53 <|> (A.string "$(Settings.juliusFile " >> return Julius)
53 <|> (A.string "$(Settings.widgetFile " >> return Widget)
54 <|> (A.string "$(Settings.widgetFile " >> return Widget)
55+ <|> (A.string "$(persistFile " >> return Verbatim)
56+ <|> (A.string "$(parseRoutesFile " >> return Verbatim)
54 A.skipWhile isSpace
57 A.skipWhile isSpace
55 _ <- A.char '"'
58 _ <- A.char '"'
56 y <- A.many1 $ A.satisfy (/= '"')
59 y <- A.many1 $ A.satisfy (/= '"')