1module Text.Hakyll.Renderable
2 ( Renderable(toContext, getDependencies, getURL)
5import System.FilePath (FilePath)
6import Text.Template (Context)
8-- | A class for datatypes that can be rendered to pages.
9class Renderable a where
10 -- | Get a context to do substitutions with.
11 toContext :: a -> IO Context
13 -- | Get the dependencies for the renderable. This is used for cache
15 getDependencies :: a -> [FilePath]
17 -- | Get the destination for the renderable.
18 getURL :: a -> FilePath
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list