Ember.js v0.9.7

by dgeb

HTML

<script src="https://raw.github.com/gist/2771761/d3da41dbc21a201662f041e5985716e7f3245c49/ember_upgrade_flags.js"></script>
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-0.9.8.js"></script>
<script type="text/x-handlebars" >
    {{#view App.View}}
        <div>dump:</div>
        {{view.foo}}     {{! this correctly outputs the array}}
        {{log view.foo}} {{! this will log "undefined" - a bug in 0.9.8}}
        <div>loop:</div>
        {{#each array in view.foo}}
            {{#each number in array}}
                {{#if view.bar}}
                    {{number}}
                {{/if}}
            {{/each}}
        {{/each}}
    {{/view}}
</script>

JavaScript

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

App.View = Ember.View.extend({
    foo: [[1, 2], [3, 4]],
    bar: true
});