@hackage mustache0.1.0.0

A mustache template parser library.

mustache Travis Status

Haskell implementation of mustache templates.

Motivation

The old Haskell implementation of mustache tempates hastache seemed pretty abandoned to me. This implementation aims to be much easier to use and (fingers crossed) better maintained.

Since it is so easy to use and requires but a few files of code, I've also written a small executable that compiles and renders mustache templates with data input from json or yaml files.

Usage

Library

... Soon™

Executable haskell-mustache

$ haskell-mustache --help
Simple mustache template substitution

arguments [OPTIONS] TEMPLATE [DATA-FILES]

Common flags:
  -t --templatedirs[=DIRECTORY]  The directory in which to search for the
                                 templates
  -? --help                      Display help message
  -V --version                   Print version information

Currenty substitutes the TEMPLATE once with each DATA-FILE

Roadmap

  • String parser for mustache templates
  • Template substitution
  • Standalone executable
  • Support for 'set delimiter'
  • More efficiency using Text rather than String
  • More efficient Text parsing
  • Full unittest coverage (partially done)
  • Haddock documentation
  • More instances for ToMustache typeclass