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

Added handlebars not equal helper

This commit is contained in:
2022-04-22 04:44:59 +00:00
parent 1ba69a3d43
commit 61e149df4c

View File

@@ -6,6 +6,10 @@ helpers.eq = function (arg1, arg2, options) {
return arg1 === arg2 ? options.fn(this) : options.inverse(this);
};
helpers.neq = function (arg1, arg2, options) {
return arg1 !== arg2 ? options.fn(this) : options.inverse(this);
};
helpers.json = function (object) {
return JSON.stringify(object);
};