I wanted to get a substring of my handlebar expression using a helper like this:
helpers:{
calc: function(value, start , end){
return value.substring(start , end)
}
}
But it returned an error
TypeError: Cannot read property 'substring' of null
And this is from my views page
<td>{{calc this.first_quarter 1 4}}</td>