aboutsummaryrefslogtreecommitdiff
path: root/mustache/README.md
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-05-27 20:20:43 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-05-27 20:20:43 +0200
commit73498534cfdccab95e580f8d6b121655d00e7578 (patch)
treef1160d0c93833cbf668700a096e2bf4a2b7ff4ea /mustache/README.md
parent35837f5607986b18746590c1611927d59cbe8c87 (diff)
downloadreploy-73498534cfdccab95e580f8d6b121655d00e7578.tar.gz
reploy-73498534cfdccab95e580f8d6b121655d00e7578.tar.bz2
fork mustache
Diffstat (limited to 'mustache/README.md')
-rw-r--r--mustache/README.md54
1 files changed, 54 insertions, 0 deletions
diff --git a/mustache/README.md b/mustache/README.md
new file mode 100644
index 0000000..340494b
--- /dev/null
+++ b/mustache/README.md
@@ -0,0 +1,54 @@
+# mustache [![Travis Status](https://travis-ci.org/JustusAdam/mustache.svg?branch=master)](https://travis-ci.org/JustusAdam/mustache) [![Hackage](https://img.shields.io/hackage/v/mustache.svg)](https://hackage.haskell.org/package/mustache) [![Join the chat at https://gitter.im/JustusAdam/mustache](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JustusAdam/mustache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+
+Haskell implementation of [mustache templates][mustache-homepage].
+
+[mustache-homepage]: https://mustache.github.io
+
+Implements the official [specs version 1.1.3](https://github.com/mustache/spec/releases/tag/v1.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.
+
+[hastache]: https://hackage.haskell.org/package/hastache
+
+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.
+
+[documentation]: https://hackage.haskell.org/package/mustache
+
+### 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 than `String`
+- [x] More efficient Text parsing
+- [x] Test coverage provided via the official [specs](https://github.com/mustache/spec)
+- [x] Haddock documentation
+- [ ] More instances for `ToMustache` typeclass