Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from mustache.js to wontache? #27

Open
robinmetral opened this issue Aug 8, 2024 · 1 comment
Open

Switch from mustache.js to wontache? #27

robinmetral opened this issue Aug 8, 2024 · 1 comment

Comments

@robinmetral
Copy link
Owner

Mustache.js hasn't had a release for a while, which is not a problem in itself (mustache is stable and feature-complete, and a spec-conforming engine should not need many releases).

However, there were several new additions to the mustache spec recently, most notably a series of "optional modules" such as inheritance (blocks and parents, implemented in mustache/spec#38) and lambdas.

One active member of the mustache community (and author of the inheritance module) has been working on a new JavaScript, spec-compliant, wonderfully-named mustache engine: wontache. It's still under development but seems stable enough for this project to start using it.

In its own words, in comparison to Mustache.js:

Wontache is much more accurate at indentation handling, substantially faster and committed to adhere to the official specification.

The wontache codebase is hosted on Gitlab and the repo is here.

@robinmetral
Copy link
Owner Author

Maybe brut sites can start using mustache partials instead of preprocessing their data to format dates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant