Socket
Socket
Sign inDemoInstall

gulp-pug

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-pug

Gulp plugin for compiling Pug templates.


Version published
Weekly downloads
14K
increased by0.93%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-pug

Gulp plugin for compiling Pug templates.

A Gulp plugin for compiling Pug templates. In order to use, you must install a version of pug alongside gulp-pug... This is so gulp-pug can rely on the version of pug that you want.

Installation

$ npm install --save-dev gulp-pug pug@latest

Make sure you are using the latest version of pug if you are experiencing any strange problems.

Usage

var gulp = require('gulp');
var pug = require('gulp-pug');

gulp.task('build', function build() {
  return gulp.src('views/**.pug')
    .pipe(pug(options))
    .pipe(gulp.dest('out'));
});

pug(options)

Compile Pug files to HTML files.

  • options (Object): Any of Pug's options you want to use.
  • options.data (Object): Locals to use in template. (Also see gulp-data)

Example:

// ...
.pipe(pug({
  pretty: true,
  data: {
    foo: 'bar'
  }
}))
.pipe(gulp.dest(out));

Credits

Jamen Marz
@jamen

License

MIT © Jamen Marzonie

Keywords

FAQs

Package last updated on 19 Apr 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc