hakyll-1.4: A simple static site generator library.Source codeContentsIndex
A module for dealing with Pages. This module is mostly internally used.
data Page
fromContext :: Context -> Page
getValue :: String -> Page -> String
getBody :: Page -> String
readPage :: FilePath -> Hakyll Page
data Page Source
A Page is basically key-value mapping. Certain keys have special meanings, like for example url, body and title.
show/hide Instances
fromContext :: Context -> PageSource
Create a Page from a key-value mapping.
getValue :: String -> Page -> StringSource
Obtain a value from a page. Will resturn an empty string when nothing is found.
getBody :: Page -> StringSource
Get the body for a certain page. When not defined, the body will be empty.
readPage :: FilePath -> Hakyll PageSource
Read a page. Might fetch it from the cache if available. Otherwise, it will read it from the file given and store it in the cache.
Produced by Haddock version 2.6.0