@@ -26,9 +26,9 @@ import Text.Hakyll.Internal.CompressCss
26import Text.Hakyll.Internal.Render
26import Text.Hakyll.Internal.Render
28-- | Execute an IO action only when the cache is invalid.
28-- | Execute an IO action only when the cache is invalid.
29−depends :: FilePath -- ^ File to be rendered or created.
29+depends :: FilePath -- ^ File to be rendered or created.
30 -> [FilePath] -- ^ Files the render depends on.
30 -> [FilePath] -- ^ Files the render depends on.
31− -> Hakyll () -- ^ IO action to execute when the file is out of date.
31+ -> Hakyll () -- ^ Action to execute when the file is out of date.
32 -> Hakyll ()
32 -> Hakyll ()
33depends file dependencies action = do
33depends file dependencies action = do
34 destination <- toDestination file
34 destination <- toDestination file
@@ -37,8 +37,8 @@ depends file dependencies action = do
38-- | Render to a Page.
38-- | Render to a Page.
39render :: Renderable a
39render :: Renderable a
40− => FilePath -- ^ Template to use for rendering.
40+ => FilePath -- ^ Template to use for rendering.
41− -> a -- ^ Renderable object to render with given template.
41+ -> a -- ^ Renderable object to render with given template.
42 -> Hakyll Page -- ^ The body of the result will contain the render.
42 -> Hakyll Page -- ^ The body of the result will contain the render.
43render = renderWith id
43render = renderWith id
@@ -46,9 +46,9 @@ render = renderWith id
47renderWith :: Renderable a
47renderWith :: Renderable a
48 => ContextManipulation -- ^ Manipulation to apply on the context.
48 => ContextManipulation -- ^ Manipulation to apply on the context.
49− -> FilePath -- ^ Template to use for rendering.
49+ -> FilePath -- ^ Template to use for rendering.
50− -> a -- ^ Renderable object to render with given template.
50+ -> a -- ^ Data to render.
51− -> Hakyll Page -- ^ The body of the result will contain the render.
51+ -> Hakyll Page -- ^ Result of the render operation.
52renderWith manipulation templatePath renderable = do
52renderWith manipulation templatePath renderable = do
53 template <- readTemplate templatePath
53 template <- readTemplate templatePath
54 context <- toContext renderable
54 context <- toContext renderable
@@ -66,7 +66,7 @@ renderWith manipulation templatePath renderable = do
67renderAndConcat :: Renderable a
67renderAndConcat :: Renderable a
68 => [FilePath] -- ^ Templates to apply on every renderable.
68 => [FilePath] -- ^ Templates to apply on every renderable.
69− -> [a] -- ^ Renderables to render.
69+ -> [a] -- ^ Renderables to render.
70 -> Hakyll String
70 -> Hakyll String
71renderAndConcat = renderAndConcatWith id
71renderAndConcat = renderAndConcatWith id