2
0
Files
node-red-contrib-mi-devices/node-red-contrib-xiaomi-ht/node_modules/mustache/wrappers/jquery/mustache.js.post
Harald Rietman 0b086db400 Initial commit
2017-06-25 18:48:17 +02:00

14 lines
359 B
Plaintext

$.mustache = function (template, view, partials) {
return Mustache.render(template, view, partials);
};
$.fn.mustache = function (view, partials) {
return $(this).map(function (i, elm) {
var template = $.trim($(elm).html());
var output = $.mustache(template, view, partials);
return $(output).get();
});
};
})(jQuery);