mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 01:19:31 +00:00
Fixed context in handlebars helpers
This commit is contained in:
@@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
const helpers = {};
|
const helpers = {};
|
||||||
|
|
||||||
helpers.eq = (arg1, arg2, options) =>
|
helpers.eq = function (arg1, arg2, options) {
|
||||||
arg1 === arg2 ? options.fn(this) : options.inverse(this);
|
return arg1 === arg2 ? options.fn(this) : options.inverse(this);
|
||||||
|
};
|
||||||
|
|
||||||
|
helpers.json = function (object) {
|
||||||
|
return JSON.stringify(object);
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = helpers;
|
module.exports = helpers;
|
||||||
|
|||||||
Reference in New Issue
Block a user