Define array inside template for handlebars/ember?
问题 I have a handlebars template in an ember application. It accepts an array. I currently declare the array like this template: {{Gd-radio-input content=radioContent value="blue"}} Javascript: App.IndexController = Em.Controller.extend({ radioContent: [ {label: 'Red', value: 'red'}, {label: 'Blue', value: 'blue'}, {label: 'Green', value: 'green'}, {label: 'Yellow', value: 'yellow'}, ] }); For my purposes, I would like to define the array inside the template sometimes. I tried this, but javascrip