This commit is contained in:
Steve Saldivar committed 2013-05-07 14:03:51 -07:00
commit ec2e35c117
343 files changed
+13615

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
$.mustache = function (template, view, partials) {
return Mustache.render(template, view, partials);
};
$.fn.mustache = function (view, partials) {
return $(this).map(function (i, elm) {
var template = $(elm).html().trim();
var output = $.mustache(template, view, partials);
return $(output).get();
});
};
})(jQuery);
+9
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($) {