1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:39:26 +00:00

Fixed context in handlebars helpers

This commit is contained in:
2022-03-14 09:40:10 +00:00
parent 8b3f8fa19d
commit 609f50545c

View File

@@ -2,7 +2,12 @@
const helpers = {};
helpers.eq = (arg1, arg2, options) =>
arg1 === arg2 ? options.fn(this) : options.inverse(this);
helpers.eq = function (arg1, arg2, options) {
return arg1 === arg2 ? options.fn(this) : options.inverse(this);
};
helpers.json = function (object) {
return JSON.stringify(object);
};
module.exports = helpers;