1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-28 07:50:55 +02:00
keeweb/app/scripts/hbs-helpers/ifeq.js
2020-06-01 16:53:51 +02:00

6 lines
179 B
JavaScript

import Handlebars from 'hbs';
Handlebars.registerHelper('ifeq', function (lvalue, rvalue, options) {
return lvalue === rvalue ? options.fn(this) : options.inverse(this);
});