Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created April 12, 2013 22:26
Show Gist options
  • Save gilesbowkett/5375680 to your computer and use it in GitHub Desktop.
Save gilesbowkett/5375680 to your computer and use it in GitHub Desktop.
simpler yet (thx @wycats)
<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