I'm having to define template helpers everywhere that simply test the equality of a document property with a constant so I can do something like this in my template:
{{#if fruitIsPineapple}}...{{/if}}
And in my template helper looks like:
Template.example.helpers({
fruitIsPineapple: function () { return this.document.fruit === 'pineapple'; }
});
How can I save myself from having to create all these helpers? It'd be nice if there we an equality operator in Blaze...