Ember.js / Handlebars nested each iterations
问题 Having a view that should represent a table, having columns and rows : App.ListView = Ember.View.extend({ templateName: 'list', columns: ['t1', 't2', 't3'], rows: [ { t1: 'one', t2: 'two', t3: 'three' }, { t1: 'two', t2: 'one', t3: 'seven' } ] }); - respectively a template: <table> <thead> <tr> {{#each columns}} <th>{{this}}</th> {{/each}} </tr> </thead> <tbody> {{#each rows}} <tr> {{#each ../columns}} <td>does nothing: {{this}}</td> {{/each}} </tr> {{/each}} <tbody> <table> ... which can be