Text.Hakyll.Renderables
- data CustomPage
- createCustomPage :: String -> [FilePath] -> [(String, Either String (IO String))] -> CustomPage
- data PagePath
- createPagePath :: FilePath -> PagePath
Documentation
Arguments
| :: String | Destination of the page, relative to _site. |
| -> [FilePath] | Dependencies of the page. |
| -> [(String, Either String (IO String))] | Key - value mapping for rendering. |
| -> CustomPage |
Create a custom page.
PagePath is a class that wraps a FilePath. This is used to render Pages without reading them first through use of caching.
Instances
createPagePath :: FilePath -> PagePathSource
Create a PagePath from a FilePath.