I have a helper called printArray
that just prints every item in an array. It works great when I define the array in JS and pass it in to the helper via a context object. What I want to do is define the array right in the template, like:
{{printArray arr=[1, 3, 4] }}
Unfortunately, by the time this gets to my helper, the arr
key points to undefined
. Is there any valid syntax to get the array inside my helper without defining it in javascript?