I have a helper which returns a or based on the loop index for each. However I am not able to figure out how to send the index in. In an array the array index comes as @index (as per handlebars docs). I tried the following already
{{tagOpen index=@index}} - this case index is coming as undefined
{{tagOpen @index}} - in this case the page doens’t even load with error saying “Uncaught SyntaxError: Unexpected token ,”
Can some one please help me?