You want to use it like the following?
{{#isEq 7 8}}
They're equal!
{{else}}
They're not equal :(
{{/isEq}}
From 0.8, block helpers are defined as templates. See https://github.com/meteor/meteor/tree/devel/packages/spacebars#custom-block-helpers
And I think you need to call it with keyword arguments ({{#isEq v1=7 v2=8}}
). Although, you should be able to define isEq
as an helper, and then use the #if
block helper like {{#if isEq 7 8}}
.