Safe Haskell | Safe-Infered |
---|
Network.Gitit.Page
- stringToPage :: Config -> String -> String -> Page
- pageToString :: Config -> Page -> String
- readCategories :: FilePath -> IO [String]
Documentation
stringToPage :: Config -> String -> String -> Page
Read a string (the contents of a page file) and produce a Page object, using defaults except when overridden by metadata.
pageToString :: Config -> Page -> String
Write a string (the contents of a page file) corresponding to a Page object, using explicit metadata only when needed.
readCategories :: FilePath -> IO [String]
Read categories from metadata strictly.