Newer
Older
ez-indexation / app / node_modules / mustache / wrappers / jquery / mustache.js.post
@kieffer kieffer on 7 Mar 2017 359 bytes v0.0.0
  $.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);