hakyll-1.4: A simple static site generator library.
Source code
Contents
Index
Text.Hakyll.Renderable
Synopsis
class
Renderable
a
where
toContext
:: a ->
Hakyll
Context
getDependencies
:: a -> [
FilePath
]
getUrl
:: a ->
Hakyll
FilePath
Documentation
class
Renderable
a
where
Source
A class for datatypes that can be rendered to pages.
Methods
toContext
:: a ->
Hakyll
Context
Source
Get a context to do substitutions with.
getDependencies
:: a -> [
FilePath
]
Source
Get the dependencies for the renderable. This is used for cache invalidation.
getUrl
:: a ->
Hakyll
FilePath
Source
Get the destination for the renderable.
Instances
Renderable
Page
Renderable
PagePath
Renderable
CustomPage
(
Renderable
a,
Renderable
b) =>
Renderable
(
CombinedRenderable
a b)
Produced by
Haddock
version 2.6.0