0.3.0 • Published 5 years ago

pandemic-mustache v0.3.0

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
5 years ago

pandemic-mustache

Wrapper to apply mustache templating to your manuscript in pandemic.

Usage

cat my_document > pandemic-mustache [view1.json] [view2.json] [...]

Where the arguments are .json or .yaml files that contain the 'views' (ie. the name/values association to replace in the template).

If no arguments are given, pandemic-mustache will look in the front matter of the document provided on stdin:

---
mustache: results.json
---

or

---
mustache:
- results/res1.json
- results/res2.yaml
---

In the case of multiple files, each file is used in turn to fill in the mustache place holders in your document. Therefore, if a value if defined in multiple files, only the first occurrence will be used in the template and no error will be thrown.

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago