diff --git a/lib/handlebarsHelpers.js b/lib/handlebarsHelpers.js index 8c950b6..8006265 100644 --- a/lib/handlebarsHelpers.js +++ b/lib/handlebarsHelpers.js @@ -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;