Closed shuhrat closed 10 years ago
engines: _.map(engines, function (engine, engineName) {
var techPath = engine.tech,
tech = require(techPath),
options = _.cloneDeep(engine.options || {}),
target = '?.' + engineName.toLowerCase() + '.js',
exportName = options.exportName;
if (_.isEmpty(exportName)) {
var xjsTechs = ['enb-xjst', 'enb-bemhtml', 'enb-bemxjst'];
if (_.intersection(techPath.split(path.sep), xjsTechs).length) exportName = 'BEMHTML'
}
options.target = target;
return {
name: engineName,
tech: tech,
target: target,
exportName: exportName,
options: options
};
}),
Fixed in v0.2.8
exportName
is not described int the documentationenb-xjst
orenb-bemxjst
in it's path