Closed DougBeney closed 6 years ago
The linked plugin goes against the gulpplugin ethos. Instead of creating a fork and adding functionality, you should be thinking what sort of plugin you could create that would work in tandem with gulp-pug.
Example (this probably isn't the best API):
gulp.src(...)
.pipe(frontmatter.extract())
.pipe(pug())
.pipe(frontmatter.insert())
.pipe(gulp.dest(...))
Gotcha. Will consider that.
Thanks for the feedback! I ended up taking your advice and created a separate plugin: https://github.com/DougBeney/gulp-frontmatter-wrangler
@DougBeney awesome! Feel free to submit a PR to the "Also see" section with your new module!
Hello, Just wanted to share a variation of this plugin I created called "gulp-pug-frontmatter-support"
Using this plugin, this Pug code...
...Will turn into this:
This is useful for anyone who has a Gulp + Pug setup for a statically generated site. For example, I am using this in my Jekyll-Bliss project.
I thought it might be useful to add this to the "Also see" list in your readme.