So I have an array returning from the function call @mappingFunctions.getFunctionNames(), and I'm passing it into a handlebars template, but nothing's happening.
@$el.append(@template({
column: columns
functionNames: JSON.stringify(@mappingFunctions.getFunctionNames())
}))
In another file -
getFunctionNames: ->
names = []
functions = @get('functions')
for name of functions
names.push(name)
return names
It seems like the each is not being run -
<select class="map-columns">
{{#each column}}
<option value="{{ this }}">{{ this }}</option>
{{/each}}
</select>
<select class="map-functions">
{{#each functionNames}}
<option value="{{ this }}">{{ this }}</option>
{{/each}}
</select>
Why?