1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-25 07:37:46 +02:00
keeweb/app/scripts/hbs-helpers/ifemptyoreq.js
2020-06-01 16:53:51 +02:00

6 lines
197 B
JavaScript

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