2016-10-09 19:14:02 +00:00
|
|
|
"use strict";
|
|
|
|
|
2014-07-20 19:49:44 +00:00
|
|
|
Handlebars.registerHelper(
|
|
|
|
"equal", function(a, b, opt) {
|
|
|
|
a = a.toString();
|
|
|
|
b = b.toString();
|
2016-05-12 13:07:15 +00:00
|
|
|
if (a === b) {
|
2014-07-20 19:49:44 +00:00
|
|
|
return opt.fn(this);
|
|
|
|
}
|
2016-10-09 08:54:44 +00:00
|
|
|
|
|
|
|
return opt.inverse(this);
|
2014-07-20 19:49:44 +00:00
|
|
|
}
|
|
|
|
);
|