Skip to content

Instantly share code, notes, and snippets.

@machty
Created February 19, 2013 07:44
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 machty/4983835 to your computer and use it in GitHub Desktop.
Save machty/4983835 to your computer and use it in GitHub Desktop.
Ember.onLoad('application', function() {
for(var name in Ember.TEMPLATES) {
var newName = name.replace(/embs\//, "");
Ember.TEMPLATES[newName] = Ember.TEMPLATES[name];
delete Ember.TEMPLATES[name];
}
});
@seivan
Copy link

seivan commented Feb 19, 2013

window.App = Ember.Application.create
  ready: () ->
    for name, value of Ember.TEMPLATES 
      newName = name.replace(/embs\//, "")
      Ember.TEMPLATES[newName] = Ember.TEMPLATES[name]
      delete Ember.TEMPLATES[name]
    console.log('HelloEmber ready!');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment