function end () { var _this = this; configData = transformTools.loadTransformConfig('browserify-jade', file, function(err, configData) { if(configData) { var config = configData.config || {}; for(key in config) { opts[key] = config[key]; } } var result = compile(file, data, opts); _this.queue(result); _this.queue(null); }); }
function end () { var _this = this; configData = transformTools.loadTransformConfig('browserify-jade', file, function(err, configData) { if(configData) { var config = configData.config || {}; for(key in config) { opts[key] = config[key]; } } var result = compile(file, data, opts); result.dependencies.forEach(function(dep) { _this.emit('file', dep); }); _this.queue(result.body); _this.queue(null); }); }
function end() { var _this = this; configData = transformTools.loadTransformConfig('pugify', file, { fromSourceFileDir: true }, function (err, configData) { if (configData) { var config = configData.config || {}; for (key in config) { opts[key] = config[key]; } } try { var result = compile(file, data, opts); result.dependencies.forEach(function (dep) { _this.emit('file', dep); }); _this.queue(result.body); } catch (e) { _this.emit("error", e); } _this.queue(null); }); }