package mustache
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8b0a04af0cb897fdba41fd946fa1b6cdb3982ca0db604e13ee0977585ff4c45d
md5=ee15623d0f699b6aff31904fedf4945e
Description
Read and write mustache templates, and render them by providing a json object.
Contains the mustache command line utility for driving logic-less templates.
Added to opam-repository:
README
ocaml-mustache
mustache.js logic-less templates in OCaml
Example usage
let tmpl =
Mustache.of_string "Hello {{name}}\n\
Mustache is:\n\
{{#qualities}}\
* {{name}}\n\
{{/qualities}}"
let json =
`O [ "name", `String "OCaml"
; "qualities", `A [ `O ["name", `String "awesome"]
; `O ["name", `String "simple"]
; `O ["name", `String "fun"]
]
]
let rendered =
Mustache.render tmpl jsonSpec compliance
ocaml-mustache complies¹ to the latest mustache specification, and is automatically tested against it.
¹: except for lambdas and set delimiters tags.
Todo/Wish List
- Support for ropes
http://mustache.github.io/
Dev Dependencies (1)
-
ounit
with-test
Optional Dependencies
None
Used by (5)
- bastet
-
camyll
< "0.2.0" - dkml-dune-dsl-show
-
soupault
< "2.0.0" -
yocaml_mustache
< "2.0.0"
Conflicts
None
Build status
Results of building mustache with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure