mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-22 07:16:38 +02:00
6 lines
201 B
JavaScript
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);
|
|
});
|