src/index.js
function handleStream(target, encoding, cb) {
		if (target.isNull()) {
			return cb(null, target);
		}

		if (target.isStream()) {
			return cb(error(target.path + ': Streams not supported for target templates!'));
		}

		try {
			const tagsRegExp = getRegExpTags(opt, null);
			target.contents = processContent(target, opt, tagsRegExp, [target.path]);
			this.push(target);
			return cb();
		} catch (err) {
			this.emit('error', err);
			return cb();
		}
	}
function handleStream(target, encoding, cb) {
		if (target.isNull()) {
			return cb(null, target);
		}

		if (target.isStream()) {
			return cb(error(target.path + ': Streams not supported for target templates!'));
		}

		try {
			const tagsRegExp = getRegExpTags(opt, null);
			target.contents = processContent(target, opt, tagsRegExp, [target.path]);
			this.push(target);
			return cb();
		} catch (err) {
			this.emit('error', err);
			return cb();
		}
	}
function handleStream ( target , encoding , cb ) { if ( target . isNull ( ) ) { return cb ( null , target ) ; } if ( target . isStream ( ) ) { return cb ( error ( target . path + ': Streams not supported for target templates!' ) ) ; } try { const tagsRegExp = getRegExpTags ( opt , null ) ; target . contents = processContent ( target , opt , tagsRegExp , [ target . path ] ) ; this . push ( target ) ; return cb ( ) ; } catch ( err ) { this . emit ( 'error' , err ) ; return cb ( ) ; } }
Handle injection of files
@param target
@param encoding
@param cb
@returns {*}
Handle injection of files