Ember.js 0.9.3 template

by ebryn

HTML

<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-0.9.3.js"></script>
<script type="text/x-handlebars">
  {{App.y.bar.baz}}
</script>

JavaScript

window.App = Ember.Application.create();

var x = {
  bar: {
    baz: "quux"
  }
};

var y = App.y = Ember.Object.create(x);

setTimeout(function() {
    y.setPath('bar.baz', 'foo');
}, 1000);