2
0

Initial commit

This commit is contained in:
Harald Rietman
2017-06-25 18:48:17 +02:00
commit 0b086db400
24 changed files with 2328 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
$.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);

View File

@@ -0,0 +1,9 @@
/*
Shameless port of a shameless port
@defunkt => @janl => @aq
See http://github.com/defunkt/mustache for more info.
*/
;(function($) {