Module ringo/mustache
CommonJS-compatible mustache.js module.
This version of mustache.js adds filters. If a tag or section name consists of several space-separated items, the items are evaluated one at a time, starting with the right-most item. If an item evaluates to a function, the result of the previous item is passed to it as argument.
Example
var template = 'Hello {{upper world}}!';
var data = {
upper: function(str) { return str.toUpperCase() },
world: 'world'
};
mustache.to_html(template, data);
// -> 'Hello WORLD!'