Skip to content

Instantly share code, notes, and snippets.

@ralphholzmann
Created July 1, 2013 19:39
Show Gist options
  • Save ralphholzmann/5903873 to your computer and use it in GitHub Desktop.
Save ralphholzmann/5903873 to your computer and use it in GitHub Desktop.
define(["ember"], function (Ember) {
return {
load: function(name, require, onload, config) {
require(["text!/js/templates/" + name + ".hbs"], function (template) {
Ember.TEMPLATES[name] = Ember.Handlebars.compile(template);
onload();
});
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment