Ember Latest

The latest build of Ember.

by pearkes

HTML

<script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<script type="text/x-handlebars" data-template-name="zoo">
    <h2>{{name}}</h2>
    {{outlet}}
</script>

<script type="text/x-handlebars" data-template-name="animals">
  <ul>
   </ul>
</script>

<script type="text/x-handlebars" data-template-name="animals/show">
  <ul>
   </ul>
</script>

JavaScript

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

App.Router.map(function() {
  this.resource("zoo", {path: "/:zoo"}, function() {
    this.resource("animal", { path: "/animals" }, function(){
      this.route("show", { path: "/:name" });
    });
  });
});

App.ZooRoute = Ember.Route.extend({
  model: function(){
      return [
          {name: 'Central Park Zoo', location: 'NY, NY'}
      ];
  }
});