Re:Snap: A Haskell Web Framework
by whalesalad on Saturday May 22, 2010 @02:44AM
(#1369921)
"An XML-based templating system for generating HTML" That turned me off immediately.
[ Parent
| on HN ]
Re:Snap: A Haskell Web Framework
by jamesbritt on Saturday May 22, 2010 @02:55AM
(#1369931)
"To install Snap, simply use cabal. Itβs up to you whether or not you want to use the Heist templating library. It is not required if you just want to use the rest of Snap."
But I haven't seen what other options are in place for simple templating. Presumably you could use Hamlet or something, if you wire it in.
It should include at least some basic string interpolation stuff so you can so simple output in a simple way.
Re:Snap: A Haskell Web Framework
by how_gauche on Saturday May 22, 2010 @03:07AM
(#1369950)
Sorry you feel that way, at least it's optional. The idea is that we are interesting in doing DOM-level transformations bound to html tags and there just isn't a robust HTML5 DOM parser available for Haskell.
Re:Snap: A Haskell Web Framework
by jamesbritt on Saturday May 22, 2010 @03:15AM
(#1369960)
What would you suggest for "populate placeholders in a string and send it out" page rendering?
Re:Snap: A Haskell Web Framework
by how_gauche on Saturday May 22, 2010 @03:27AM
(#1369978)
I personally like http://hackage.haskell.org/package/HStringTemplate for that.
Re:Snap: A Haskell Web Framework
by jamesbritt on Saturday May 22, 2010 @03:10PM
(#1370841)
Thanks!
http://www.alsonkemp.com/programming/a-haml-parser-for-haske... is young (but not) but looks (pretty) hype.
Re:Snap: A Haskell Web Framework
by mightybyte on Sunday May 23, 2010 @02:16AM
(#1371916)
What don't you like about XML-based templating?