I've been thinking of powering up the template system in Hakyll a bit
lately. However, the current support for Hamlet templates makes this a
hard task. I was even thinking of dropping Hamlet support entirely for
two reasons:
- the runtime bindings seem to be available no more in the latest
release of hamlet, making Hakyll dependent on an older Hamlet version;
- the mismatches between the two formats.
Obviously, I don't want to break any sites, so I would like to hear if
anyone is currently using this feature, and what their opinions are.
Cheers,
Jasper
What is the Hamlet templating? Is this the $description$ and $title$
stuff in the HTML skeleton files? If it is, I am most certainly using
it!
--
gwern
http://www.gwern.net
_______________________________________________
web-devel mailing list
web-...@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel
Good point!
> What is the Hamlet templating? Is this the $description$ and $title$
> stuff in the HTML skeleton files? If it is, I am most certainly using
> it!
No, those are the Hakyll templates (which is more or less the
default). The Hamlet templates are an extension which allows you to
use a HAML-like syntax in templates. You enable them by using
`.hamlet` templates instead of `.html` templates -- I'm sorry if I
caused any confusion.
Cheers,
Jasper
Michael
Cheers,
Jasper
(1) Package hakyll is depend on libghc-hamlet-dev (< 0.9).
(2) But libghc-hamlet-dev is 0.10.1 on Debian, and Debian only have
one version of libghc-hamlet-dev.
would it be possible to add a hamlet-rt package when time allows you?
Cheers,
Jasper
On Mon, Oct 3, 2011 at 4:18 PM, Michael Snoyman <mic...@snoyman.com> wrote:
> I likely won't have time in the immediate future unfortunately, but
> I'll try to get to it when I have a chance. I've CCed the Yesod
> mailing list, in case anyone over there would like to take a crack at
> this.
I write the patch for runtime hamlet.
https://github.com/yesodweb/hamlet/pull/23
Hakyll's test is green with the patched hamlet-0.10.2.
$ pwd
/home/kiwamu/src/hakyll
$ patch -p1 < ~/hakyll-hamlet-rt.patch # attached this mail
patching file hakyll.cabal
patching file src/Hakyll/Web/Template/Read/Hamlet.hs
$ ghc-pkg list |grep hamlet
hamlet-0.10.1
hamlet-0.10.2
$ make test
--snip--
Properties Test Cases Total
Passed 2 67 69
Failed 0 0 0
Total 2 67 69
This way is acceptable by hamlet and hakyll?
Or should I split libraries between hamlet and hamlet-rt?
Best regards,
--
Kiwamu Okabe
Thank you for addressing that. I've released this code as hamlet
0.10.3. Jasper, can you confirm that this will solve the issue at
hand?
Thanks,
Michael
Cheers,
Jasper