Inject relative file to the source when parsing multiple files
kr8n3r opened this issue · 1 comments
kr8n3r commented
example:
in there are a bunch of components that have a file and a markup file
I'd when parsing md fils, I'd like to inject the relative example markup into them
say components/button has a button.html and README.md files
so something like
.pipe(inject(gulp.src([file.dirname + '*.html']), {
starttag: '<!-- inject:code -->',
transform: function (filepath, file) {
return filepath
}
}))
.pipe(marked({
}))
can it be done?
kr8n3r commented
nevermind, solved it in a different way