mirror of
https://github.com/thelounge/thelounge
synced 2024-12-11 21:22:35 +00:00
13 lines
172 B
JavaScript
13 lines
172 B
JavaScript
|
var diff;
|
||
|
|
||
|
Handlebars.registerHelper(
|
||
|
"diff", function(a, opt) {
|
||
|
if (a != diff) {
|
||
|
diff = a;
|
||
|
return opt.fn(this);
|
||
|
} else {
|
||
|
return opt.inverse(this);
|
||
|
}
|
||
|
}
|
||
|
);
|