mustache

Haskell implementation of mustache templates.
Implements the official specs version 1.1.3
Motivation
The old Haskell implementation of mustache templates 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
Please refer to the documentation on hackage.
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
Current implementation substitutes the TEMPLATE once with each DATA-FILE
Example
$ haskell-mustache my-template-file data-file-1.json data-file-2.json data-file-3.json
Roadmap
- String parser for mustache templates
- Template substitution
- Standalone executable
- Support for 'set delimiter'
- More efficiency using
Textrather thanString - More efficient Text parsing
- Test coverage provided via the official specs
- Haddock documentation
- More instances for
ToMustachetypeclass

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
