Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
gulp-pug
Advanced tools
Readme
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 gulp-pug
:
var pug = require('gulp-pug');
gulp.task('views', function buildHTML() {
return gulp.src('views/*.pug')
.pipe(pug({
// Your options in here.
}))
});
pug([opts])
opts
(Object
): Any options from Pug's API in addition to pug
's own options.opts.locals
(Object
): Locals to compile the Pug with. You can also provide locals through the data
field of the file object, e.g. with gulp-data
. They will be merged with opts.locals
.opts.data
(Object
): Same as opts.locals
.opts.client
(Boolean
): Compile Pug to JavaScript code.opts.pug
: A custom instance of Pug for gulp-pug
to use.opts.verbose
: display name of file from stream that is being compiled.To change opts.filename
use gulp-rename
before gulp-pug
.
Returns a stream that compiles Vinyl files as Pug.
pug
gulp-data
: Using locals in your Pug templates easier.gulp-rename
: Change opts.filename
passed into Pug.gulp-wrap-amd
: Wrap your Pug in an AMD wrapper.gulp-jade
plugin.MIT © Jamen Marzonie
FAQs
Gulp plugin for compiling Pug templates
The npm package gulp-pug receives a total of 13,435 weekly downloads. As such, gulp-pug popularity was classified as popular.
We found that gulp-pug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.