What are some preferred packages for templating in Haskell. Something similar to Django Templates, or PHP.
I don\'t want to always use it with HTML. It can be any ot
There is also karver (github) package, not mentioned in other answers. Author says “its syntax is heavily inspired by Jinja2”, but “it isn't as full featured or production ready as Jinja is”.
Some related packages:
hastache seems rather well designed imo. Bravo is a cool idea, but suited for what I want (loops, etc.), and it assumes all parameters are, in some way or another, strings.
interpolatedstring-perl6 provides a simple and well designed Quasiquoter to produce interpolated String/Text from Templates containing arbitrary Haskell expressions.
According to the Hackage popularity statistics, the top three packages, by far, are (2014):
You can see more about these two systems in this question.