hades-cli
Version:
Hades CLI developer tool
18 lines (17 loc) • 500 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const handlebars = require("handlebars");
handlebars.registerHelper('notInArray', function (items, ...options) {
let file = '';
let condition;
for (let option of options) {
if (typeof option === 'string') {
file += option;
}
else {
condition = option;
}
}
if (!Array.isArray(items) || !items.includes(file))
return condition.fn(this);
});