Gulp plugin for compiling Pug templates
This Gulp plugin enables you to compile your Pug templates into HTML or JS, with support for template locals, custom Pug filters, AMD wrapping, and others. Here is a simple example using
var pug = ;gulp;
Object): Any options from Pug's API in addition to
pug's own options.
Object): Locals to compile the Pug with. You can also provide locals through the
datafield of the file object, e.g. with
gulp-data. They will be merged with
Object): Same as
opts.pug: A custom instance of Pug for
opts.verbose: display name of file from stream that is being compiled.
Returns a stream that compiles Vinyl files as Pug.
gulp-data: Using locals in your Pug templates easier.
opts.filenamepassed into Pug.
gulp-wrap-amd: Wrap your Pug in an AMD wrapper.
MIT © Jamen Marzonie