Mustache templating with a focus on a slim size (~500 bytes gzipped). Useful for embedding into frontend libraries. ministache complies with most mustache specs with a few exceptions.
See the mustache(5) man page for an overview of features.
var compile = require('ministache');
var template = "Greetings, {{name}}";
var tpl = compile(template);
tpl({ name: "John Constantine" })
=> "Greetings, John Constantine"
Available via npm install ministache
ministache is ideal for use in embedding in other redistributable frontend libraries.
There are some mustache features that were dropped to achieve its minimal size.
{{=<% %>=}}).tj/minstache (min and not mini), which isn't spec compliant and doesn't support contexts ({{#user}}{{name}}{{/}})
janl/mustache.js, a fast and feature-filled solution that supports partials and such
ministache © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz