mustache-haskell: Straight implementation of mustache templates

[ library, mit, program, text ] [ Propose Tags ]

Straight implementation of mustache templates

[Skip to Readme]
Versions [faq],,,,,
Dependencies aeson, base (==4.7.*), bytestring, directory, mustache-haskell, optparse-applicative (>=0.11.0 && <0.12.0), parsec, pretty-show, scientific (>= && <, text, transformers, unordered-containers, vector [details]
License MIT
Author Daniel Choi
Category Text
Home page
Uploaded by DanielChoi at 2014-12-08T21:58:29Z
Distributions NixOS:
Executables mus
Downloads 3331 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for mustache-haskell-

[back to package description]


A Haskell implementation of mustache templates.

Should be compatible with the the mustache specification.


You need the Haskell platform on your system.

cabal install mustache

Or alternatively

git clone
cd mustache-haskell
cabal sandbox init
cabal install
# Now copy .cabal-sandbox/bin/mus to your PATH


mus template.mustache < input.json
mus v0.1.0.0

Usage: mus [-c] FILE
  A Haskell implementation of Mustache templates. On STDIN provide the JSON to
  insert into the template.

Available options:
  -h,--help                Show this help text
  -c                       Just output parse tree of template file

List separator syntax

mustache-haskell adds one additional feature to the mustache specification. If you are outputing elements of a list, you can designate an optional list separator with the following syntax:

{{#hobbies, }}{{#name}}{{/hobbies}}

This designates ", " as the list separator and will output

sewing, brewing, cooking

when the input is