Socket
Socket
Sign inDemoInstall

gulp-pug

Package Overview
Dependencies
227
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

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 by3.4%
Maintainers
1
Install size
816 kB
Created
Weekly downloads
 

Readme

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

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.

Example:

// ...
.pipe(pug({ pretty: true }))
.pipe(gulp.dest(out));

Credits

Jamen Marz
@jamen

License

MIT © Jamen Marzonie

Keywords

FAQs

Last updated on 08 Apr 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc