mirror of
https://github.com/thelounge/thelounge
synced 2024-12-21 01:43:07 +00:00
11 lines
190 B
JavaScript
11 lines
190 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);
|
|
}
|
|
}
|
|
);
|