From 9ba8e1b07b44ca4a3c2e6e60f6d03de1d3ee1cc6 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 28 Nov 2011 09:23:48 +0100 Subject: Update hamlet docs --- src/Hakyll/Web/Template.hs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Hakyll/Web/Template.hs b/src/Hakyll/Web/Template.hs index c5c7ff8..b33d1f3 100644 --- a/src/Hakyll/Web/Template.hs +++ b/src/Hakyll/Web/Template.hs @@ -39,7 +39,25 @@ -- -- In addition to the native format, Hakyll also supports hamlet templates. For -- more information on hamlet templates, please refer to: --- . +-- . Internally, hamlet templates are +-- converted to hakyll templates -- which means that you can only use variable +-- insertion (and not all hamlet's features). +-- +-- This is an example of a valid hamlet template. You should place them in +-- files with a @.hamlet@ extension: +-- +-- > !!! +-- > +-- > +-- > +-- > MyAweSomeCompany - #{title} +-- > <body> +-- > <h1> MyAweSomeCompany - #{title} +-- > <div id="navigation"> +-- > <a href="/index.html"> Home +-- > <a href="/about.html"> About +-- > <a href="/code.html"> Code +-- > #{body} -- module Hakyll.Web.Template ( Template -- cgit v1.2.3