Created
April 12, 2013 22:26
-
-
Save gilesbowkett/5375680 to your computer and use it in GitHub Desktop.
simpler yet (thx @wycats)
This file contains hidden or 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
<script src="handlebars.js"></script> | |
<script src="jquery-1.9.1.min.js"></script> | |
<script src="ember-1.0.0-rc.2.js"></script> | |
<script> | |
App = Ember.Application.create(); | |
App.Router.map(function() { | |
this.resource('hi'); | |
}); | |
</script> | |
<script type="text/x-handlebars" data-template-name='index'> | |
<p>{{#linkTo hi}}say hi{{/linkTo}}</p> | |
</script> | |
<script type="text/x-handlebars" data-template-name='hi'> | |
hello world! | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment