@@ -49,6 +49,13 @@ createCustomPage = CustomPage
49-- item in the list is created by applying the given template to every
49-- item in the list is created by applying the given template to every
50-- renderable. You can also specify additional context to be included in the
50-- renderable. You can also specify additional context to be included in the
51-- @CustomPage@.
51-- @CustomPage@.
53+-- > let customPage = createListingWith
54+-- > "index.html" -- Destination of the page.
55+-- > "templates/postitem.html" -- Path to template to
56+-- > -- render the items with.
57+-- > posts -- ^ Renderables to create the list with.
58+-- > [("title", "Home")] -- ^ Additional context
52createListing :: (Renderable a)
59createListing :: (Renderable a)
53 => String -- ^ Destination of the page.
60 => String -- ^ Destination of the page.
54 -> FilePath -- ^ Template to render all items with.
61 -> FilePath -- ^ Template to render all items with.