1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-22 07:16:38 +02:00
keeweb/app/scripts/helpers/ifemptyoreq.js
2017-04-08 18:31:38 +02:00

6 lines
201 B
JavaScript

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