Ember Latest

The latest build of Ember.

by ppanagi

HTML

<script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<script src="http://builds.emberjs.com.s3.amazonaws.com/ember-data-latest.min.js"></script>

CSS

h1 { font-size: 1.6em; padding-bottom: 10px; }
h2 { font-size: 1.4em; }
ul { padding: 15px; font-size: 1.4em; color: green; }

JavaScript

App = Ember.Application.create({});

//MODEL
App.Summary = DS.Model.extend({
    content: DS.attr('string')
});
App.Post = DS.Model.extend({
    title: DS.attr('string'),
    summary: DS.hasMany(App.Summary, {embedded: true})
});

App.Post.FIXTURES = [
    {id:'1', title: 'My first post', summary: [{id:1, content: 'This is summary1'}]},
    {id:'2', title: 'Another post' , summary: [{id:2, content: 'This is summary2'}]},
    {id:'3', title: 'Yet another post' , summary: [{id:3, content: 'This is summary3'}]}
];

//STORE
App.Store = DS.Store.extend({
  adapter: DS.fixtureAdapter
});