Skip to content

Instantly share code, notes, and snippets.

@jdiamond
Created May 2, 2013 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdiamond/5499804 to your computer and use it in GitHub Desktop.
Save jdiamond/5499804 to your computer and use it in GitHub Desktop.
RequireJS Mustache plugin
define([ 'text', 'mustache' ], function(text, Mustache) {
return {
load: function(name, require, callback, config) {
text.load(name, require, function(text) {
callback(Mustache.compile(text));
}, config);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment