From 3f5df5ea59a904cb8b14703667b10053f9651f50 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Thu, 28 Jan 2010 14:55:25 +0100 Subject: Some more documentation. --- src/Text/Hakyll/Renderables.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Text/Hakyll') diff --git a/src/Text/Hakyll/Renderables.hs b/src/Text/Hakyll/Renderables.hs index fef88e6..c6954b8 100644 --- a/src/Text/Hakyll/Renderables.hs +++ b/src/Text/Hakyll/Renderables.hs @@ -49,6 +49,13 @@ createCustomPage = CustomPage -- item in the list is created by applying the given template to every -- renderable. You can also specify additional context to be included in the -- @CustomPage@. +-- +-- > let customPage = createListingWith +-- > "index.html" -- Destination of the page. +-- > "templates/postitem.html" -- Path to template to +-- > -- render the items with. +-- > posts -- ^ Renderables to create the list with. +-- > [("title", "Home")] -- ^ Additional context createListing :: (Renderable a) => String -- ^ Destination of the page. -> FilePath -- ^ Template to render all items with. -- cgit v1.2.3