mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 20:59:30 +00:00
Fixed context in handlebars helpers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user