hardlounge/client/js/libs/handlebars/equal.js

12 lines
190 B
JavaScript
Raw Normal View History

2014-07-20 15:49:44 -04:00
Handlebars.registerHelper(
"equal", function(a, b, opt) {
a = a.toString();
b = b.toString();
if (a === b) {
2014-07-20 15:49:44 -04:00
return opt.fn(this);
2014-08-16 15:49:28 -04:00
} else {
return opt.inverse(this);
2014-07-20 15:49:44 -04:00
}
}
);