diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2009-12-12 15:17:01 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2009-12-12 15:17:01 +0100 |
commit | e6099205d9d2ead9201226c807525102f39883c6 (patch) | |
tree | a1e62bd0fa29a502c3474115688f7fa933d62ccd /src/Text/Hakyll/Renderable.hs | |
parent | 333c19d0c1d88ea35e3e811c2100b514ffe738c1 (diff) | |
download | hakyll-e6099205d9d2ead9201226c807525102f39883c6.tar.gz |
Wrote documentation for Text.Hakyll.Page and Text.Hakyll.Renderable.
Diffstat (limited to 'src/Text/Hakyll/Renderable.hs')
-rw-r--r-- | src/Text/Hakyll/Renderable.hs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Text/Hakyll/Renderable.hs b/src/Text/Hakyll/Renderable.hs index 12aff5b..549899c 100644 --- a/src/Text/Hakyll/Renderable.hs +++ b/src/Text/Hakyll/Renderable.hs @@ -1,14 +1,18 @@ module Text.Hakyll.Renderable - ( Renderable, - toContext, - getDependencies, - getURL + ( Renderable(toContext, getDependencies, getURL) ) where import System.FilePath import Text.Template +-- | A class for datatypes that can be rendered to pages. class Renderable a where + -- | Get a context to do substitutions with. toContext :: a -> IO Context + + -- | Get the dependencies for the renderable. This is used for cache + -- invalidation. getDependencies :: a -> [FilePath] + + -- | Get the destination for the renderable. getURL :: a -> FilePath |