1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-07-02 08:30:54 +02:00
keeweb/app/scripts/hbs-helpers/ifeq.js
2019-09-15 14:16:32 +02:00

6 lines
178 B
JavaScript

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