stefanbc
4/12/2013 - 10:26 PM

simpler yet (thx @wycats)

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>