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:
@@ -6,6 +6,10 @@ helpers.eq = function (arg1, arg2, options) {
|
|||||||
return arg1 === arg2 ? options.fn(this) : options.inverse(this);
|
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) {
|
helpers.json = function (object) {
|
||||||
return JSON.stringify(object);
|
return JSON.stringify(object);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user