[web-devel] Re: Runtime Hamlet template parsing/rendering

Simon Michael simon at joyful.com
Sat Jul 31 18:45:45 EDT 2010

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 ?

More information about the web-devel mailing list