{"id":1129,"date":"2013-02-14T00:12:55","date_gmt":"2013-02-14T05:12:55","guid":{"rendered":"http:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/?p=1129"},"modified":"2013-02-14T00:13:52","modified_gmt":"2013-02-14T05:13:52","slug":"ember-js-minimal-example","status":"publish","type":"post","link":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/2013\/02\/ember-js-minimal-example\/","title":{"rendered":"Ember.js Minimal Example"},"content":{"rendered":"<p>Recently I have been fooling with Ember.js. \u00a0Documentation is&#8230; not adequate. \u00a0At first it seems pretty good, but then it turns out:<\/p>\n<ul>\n<li>The main documentation is terrible about showing anything but isolated pieces, and there are no simple but full examples.<\/li>\n<li>Lots of the blog posts and other notes out there were invalidated by some major API changes over the last couple months.<\/li>\n<\/ul>\n<p>So, it&#8217;s a fairly steep slog to get started. \u00a0Expect some ongoing notes. \u00a0I think this is about the smallest example you can put together that does anything:<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;script  type='text\/javascript' src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.1\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script  type='text\/javascript' src=\"http:\/\/cloud.github.com\/downloads\/emberjs\/ember.js\/ember-0.9.6.min.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;script type='text\/javascript'&gt;\r\nApp = Ember.Application.create({\r\n  ready: function() {\r\n  }\r\n});\r\n\r\nApp.Dude = Ember.Object.extend({\r\n  name: null\r\n});\r\n\r\nApp.myDude = App.Dude.create({\r\n  name: \"Broderick\"\r\n});\r\n&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n&lt;script type=\"text\/x-handlebars\"&gt;\r\n{{ App.myDude.name }}\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Recently I have been fooling with Ember.js. \u00a0Documentation is&#8230; not adequate. \u00a0At first it seems pretty good, but then it turns out: The main documentation is terrible about showing anything but isolated pieces, and there are no simple but full examples. Lots of the blog posts and other notes out there were invalidated by some &hellip; <a href=\"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/2013\/02\/ember-js-minimal-example\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[104,162,294],"class_list":["post-1129","post","type-post","status-publish","format-standard","hentry","category-code","tag-html5","tag-javascript","tag-web-design"],"_links":{"self":[{"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/posts\/1129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/comments?post=1129"}],"version-history":[{"count":3,"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/posts\/1129\/revisions"}],"predecessor-version":[{"id":1132,"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/posts\/1129\/revisions\/1132"}],"wp:attachment":[{"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/media?parent=1129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/categories?post=1129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocketshipgames.com\/blogs\/tjkopena\/wp-json\/wp\/v2\/tags?post=1129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}