Shuo/client/js/libs/handlebars/equal.js

10 lines
149 B
JavaScript
Raw Normal View History

2014-07-20 19:49:44 +00:00
Handlebars.registerHelper(
"equal", function(a, b, opt) {
a = a.toString();
b = b.toString();
if (a == b) {
return opt.fn(this);
}
}
);