
31 Jul
2010
31 Jul
'10
6:45 p.m.
Great; I like the idea of easy transition to/from hakyll. I'd also use this for "dev mode", loading templates from separate files any time they have changed at runtime. I don't have an answer to your question, but wanted to raise the issue of hamlet's polymorphic url type. I found this quite a bump in the hamlet learning curve; it took me a while to figure out what exactly "a hamlet", the thing I define with [$hamlet|...|], is. Current intuition is "it's a mostly-evaluated template - pass it a url-tranforming function to get the final html". I've learned what types to use to keep it quiet, but I haven't yet learned how to get value from the url polymorphism. Do you use it ?