gulp-pug icon indicating copy to clipboard operation
gulp-pug copied to clipboard

Gulp plugin for compiling Pug templates

Results 4 gulp-pug issues
Sort by recently updated
recently updated
newest added
trafficstars

Accept a function as `options.name` to be able to specify the templates name based on the name of the input file

when using gulp pug like this ``` return gulp.src('./client/templates/*.pug') .pipe(data(function(file) { return { name: `__${path.basename(file.path, '.pug')}` }; })) .pipe(pug({ client: true, ... })) ``` the options returned from the gulp-data...

**Context.** Two years ago @wiggisser created a PR https://github.com/gulp-community/gulp-pug/pull/199 that allowed `options.name` argument to accept functions. It implemented all the functionality, but wasn't rebased and lacked some other things. Citing...

I am trying to get Liquid code running in my .pug file, as I am using gulp.js with jekyll. My goal is to set up a Jekyll loop using Liquid...