hardlounge/client/js/libs/handlebars/equal.js
2014-08-16 12:49:28 -07:00

12 lines
189 B
JavaScript

Handlebars.registerHelper(
"equal", function(a, b, opt) {
a = a.toString();
b = b.toString();
if (a == b) {
return opt.fn(this);
} else {
return opt.inverse(this);
}
}
);