ifnoteq
/** | |
* If not equal | |
* {{#ifnoteq "valueA" "valueB"}} ... {{else}} ... {{/if}} | |
*/ | |
Handlebars.registerHelper('ifnoteq', function ifnoteq(a, b, opts) { | |
return (a != b) ? opts.fn(this) : opts.inverse(this); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment