commit
This commit is contained in:
commit
ec2e35c117
343 files changed
+13615
No files matched your search
+14
@@ -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
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Shameless port of a shameless port
|
||||
@defunkt => @janl => @aq
|
||||
|
||||
See http://github.com/defunkt/mustache for more info.
|
||||
*/
|
||||
|
||||
;(function($) {
|
||||
|
||||
Reference in new issue
Block a user