5 ms·
"An XML-based templating system for generating HTML" That turned me off immediately.
by whalesalad 17y ago
"An XML-based templating system for generating HTML" That turned me off immediately.
- jamesbritt 17y ago"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.
- how_gauche 17y agoSorry 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.
- jamesbritt 17y agoWhat would you suggest for "populate placeholders in a string and send it out" page rendering?
- how_gauche 17y agoI personally like http://hackage.haskell.org/package/HStringTemplate http://hackage.haskell.org/package/HStringTemplate for that.
- jamesbritt 17y agoThanks!
- mightybyte 17y agoWhat don't you like about XML-based templating?
- rbxbx 17y agohttp://www.alsonkemp.com/programming/a-haml-parser-for-haskell/ http://www.alsonkemp.com/programming/a-haml-parser-for-haske... is young (but not) but looks (pretty) hype.