Passing gulp-front-matter value to gulp-wrap
问题 I'm hoping to do something like this: gulp.src('src/*.html') .pipe(fm ({ property: 'fm' })) .pipe(wrap({ src: fm['template'] })) where template is a value in the front-matter. I can create a separate function where I pass the value using gulp-tap but I was hoping to keep it "simple". I don't think gulp-wrap supports accessing front-matter vars. 回答1: This seems to be one solution but it starts to fail as I add more complexity, for instance with gulp-swig. The source file contains: --- template