boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
15 lines (14 loc) • 391 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
function default_1(conf) {
if (!Array.isArray(conf)) {
throw new Error('The BOATS helper "inject" should be an array of inject objects');
}
// @ts-ignore
if (!global.boatsInject) {
// @ts-ignore
global.boatsInject = conf;
}
return '';
}