mustache / mustache.github.com

The {{official}} website
http://mustache.github.io/
Other
2.33k stars 293 forks source link

YAML support #88

Closed Lukas238 closed 11 months ago

Lukas238 commented 7 years ago

I can't find a way to use YAML with mustache.

I insalled this node version: https://www.npmjs.com/package/mustache

Works fine if I use a JSON.

This is the files I use: data.yml

---
name: Hello
---

template.html

<html>
<body>
<h1>{{name}}</h1>
</body>
</html>

Windows Command $ mustache data.yml tempalte.html > template_compiled.html

iax7 commented 6 years ago

YAML support would be a killer feature!

nrktkt commented 6 years ago

@Lukas238 perhaps open an issue over in the repo that maintains that code https://github.com/janl/mustache.js