on master help sign in
Some more documentation.
commit3f5df5ea59a904cb8b14703667b10053f9651f50 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateThu 28 Jan 2010, 14:55 (17 years ago) parent0d2cfb0
1 file changed+7
src/Text/Hakyll/Renderables.hs+7
src/Text/Hakyll/Renderables.hs+7
@@ -49,6 +49,13 @@ createCustomPage = CustomPage
4949-- item in the list is created by applying the given template to every
5050-- renderable. You can also specify additional context to be included in the
5151-- @CustomPage@.
52+--
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
5259createListing :: (Renderable a)
5360 => String -- ^ Destination of the page.
5461 -> FilePath -- ^ Template to render all items with.