Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Returning 0 from a helper displays nothing #1985
Not sure if this has been reported already, but I think returning the number 0 from a helper should display the 0. It currently displays nothing. I'm guessing there is a truthy check on the helper's output.
There is a truthy check here: https://github.com/bitovi/canjs/blob/master/view/stache/mustache_core.js#L535
We need to make sure this wouldn't be a breaking change as some authors might return 0 with the intent of give me an empty string.