Skip to content

Instantly share code, notes, and snippets.

@machty
Created February 19, 2013 07:44
Show Gist options
  • Select an option

  • Save machty/4983835 to your computer and use it in GitHub Desktop.

Select an option

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

seivan commented Feb 19, 2013

Copy link
Copy Markdown
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