enb / enb-bem-tmpl-specs

BEM template specs for ENB
Other
15 stars 11 forks source link

exportName #7

Closed shuhrat closed 10 years ago

shuhrat commented 10 years ago
shuhrat commented 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
                    };
                }),
blond commented 10 years ago

Fixed in v0.2.8