Skip to content

Instantly share code, notes, and snippets.

@jkarsrud
Created May 28, 2013 13:43
Show Gist options
  • Save jkarsrud/5662847 to your computer and use it in GitHub Desktop.
Save jkarsrud/5662847 to your computer and use it in GitHub Desktop.
Ember Templates in script files
var application = "<h1>{{name}}</h1>\n<p>{{content}}</p><ul>{{#each item}}<li>{{item.name}}</li>{{/each}}</ul>";
Ember.TEMPLATES["application"] = Ember.Handlebars.compile(application);
// Do the same for more templates if you like
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment