Created
May 28, 2013 13:43
-
-
Save jkarsrud/5662847 to your computer and use it in GitHub Desktop.
Ember Templates in script files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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