Safe Haskell | None |
---|
- parseRoutePaths :: Text -> [Text]
- renderStaticPages :: Application -> Text -> [Text] -> IO ()
Documentation
parseRoutePaths :: Text -> [Text]Source
Conveniently specify paths through nested indentation
This is a partial function which calls error
on
invalid input.
import Shakespeare.Text (st) staticPaths = parseRoutePaths [st| /pages about faq / -- commented out |]
staticPaths == ["/pages/about", "/pages/faq", "/pages"]
renderStaticPages :: Application -> Text -> [Text] -> IO ()Source