mustache alternatives and similar packages
Based on the "Development" category.
Alternatively, view mustache alternatives based on common mentions on social networks and blogs.
-
cabal-install-parsers
Scripts and instructions for using CI services (e.g. Travis CI or Appveyor) with multiple GHC configurations -
fourmolu
A fourk of ormolu that uses four space indentation and allows arbitrary configuration. Don't like it? PRs welcome!
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of mustache or a related project?
Popular Comparisons
README
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
- [x] String parser for mustache templates
- [x] Template substitution
- [x] Standalone executable
- [x] Support for 'set delimiter'
- [x] More efficiency using
Text
rather thanString
- [x] More efficient Text parsing
- [x] Test coverage provided via the official specs
- [x] Haddock documentation
- [ ] More instances for
ToMustache
typeclass