- depends :: FilePath -> [FilePath] -> IO () -> IO ()
- render :: Renderable a => FilePath -> a -> IO Page
- renderWith :: Renderable a => ContextManipulation -> FilePath -> a -> IO Page
- renderAndConcat :: Renderable a => FilePath -> [a] -> IO String
- renderAndConcatWith :: Renderable a => ContextManipulation -> FilePath -> [a] -> IO String
- renderChain :: Renderable a => [FilePath] -> a -> IO ()
- renderChainWith :: Renderable a => ContextManipulation -> [FilePath] -> a -> IO ()
- static :: FilePath -> IO ()
- css :: FilePath -> IO ()
Documentation
:: FilePath | File to be rendered or created. |
-> [FilePath] | Files the render depends on. |
-> IO () | IO action to execute when the file is out of date. |
-> IO () |
Execute an IO action only when the cache is invalid.
:: Renderable a | |
=> FilePath | Template to use for rendering. |
-> a | Renderable object to render with given template. |
-> IO Page | The body of the result will contain the render. |
Render to a Page.
:: Renderable a | |
=> ContextManipulation | Manipulation to apply on the context. |
-> FilePath | Template to use for rendering. |
-> a | Renderable object to render with given template. |
-> IO Page | The body of the result will contain the render. |
Render to a Page. This function allows you to manipulate the context first.
renderAndConcat :: Renderable a => FilePath -> [a] -> IO StringSource
Render each renderable with the given template, then concatenate the result.
renderAndConcatWith :: Renderable a => ContextManipulation -> FilePath -> [a] -> IO StringSource
Render each renderable with the given template, then concatenate the result. This function allows you to specify a ContextManipulation to apply on every Renderable.
renderChain :: Renderable a => [FilePath] -> a -> IO ()Source
Chain a render action for a page with a number of templates. This will also write the result to the site destination. This is the preferred way to do general rendering.
renderChainWith :: Renderable a => ContextManipulation -> [FilePath] -> a -> IO ()Source
A more custom render chain that allows you to specify a ContextManipulation which to apply on the context when it is read first.