on master help sign in
Update hamlet docs
commit9ba8e1b07b44ca4a3c2e6e60f6d03de1d3ee1cc6 authorJasper Van der Jeugt <m@jaspervdj.be> dateMon 28 Nov 2011, 09:23 (15 years ago) parent973f77c
1 file changed+19−1
src/Hakyll/Web/Template.hs+19−1
src/Hakyll/Web/Template.hs+19−1
@@ -39,7 +39,25 @@
3939--
4040-- In addition to the native format, Hakyll also supports hamlet templates. For
4141-- more information on hamlet templates, please refer to:
42−-- <http://hackage.haskell.org/package/hamlet>.
42+-- <http://hackage.haskell.org/package/hamlet>. Internally, hamlet templates are
43+-- converted to hakyll templates -- which means that you can only use variable
44+-- insertion (and not all hamlet's features).
45+--
46+-- This is an example of a valid hamlet template. You should place them in
47+-- files with a @.hamlet@ extension:
48+--
49+-- > !!!
50+-- > <html>
51+-- > <head>
52+-- > <meta charset="UTF-8">
53+-- > <title> MyAweSomeCompany - #{title}
54+-- > <body>
55+-- > <h1> MyAweSomeCompany - #{title}
56+-- > <div id="navigation">
57+-- > <a href="/index.html"> Home
58+-- > <a href="/about.html"> About
59+-- > <a href="/code.html"> Code
60+-- > #{body}
4361--
4462module Hakyll.Web.Template
4563 ( Template