Socket
Socket
Sign inDemoInstall

gulp-pug-3

Package Overview
Dependencies
61
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-pug-3

Gulp plugin for compiling Pug templates using the latest stable version of Pug Template Engine.


Version published
Weekly downloads
190
increased by187.88%
Maintainers
1
Install size
6.57 MB
Created
Weekly downloads
 

Readme

Source

Gulp Pug 3

Build Status Dependency Status devDependencies Status Maintainability Snyk Vulnerabilities for GitHub Repo npm NPM Version contributions welcome node-current

Compiles your pug templates into 'html' or 'js' easily and always uses the latest stable version of Pug Template Engine.

Install

npm install --save-dev gulp-pug-3

Api

In addition to Pug's API: client, extension and locals options are available.

Example

const pug = require('gulp-pug-3');

gulp.task('build', () =>
    gulp.src('public/**/*.pug')
        .pipe(
            pug({ 
                // Your options.
            })
        )
        .pipe(gulp.dest('dist'));
);

gulp.task('build:X', () => 
    gulp.src('public/**/*.pug')
        .pipe(
            pug({
                   locals: { dir: 'rtl', lang: 'es' },
                extension: 'htm',
                // Pug API default opts...
                  basedir: `${__dirname}/public`
            })
        )
        .pipe(gulp.dest('dist'));
)

Troubleshooting

When you encounter a problem, please open an issue. I would be glad to help you to find a solution if possible.

Author

Github: @orcunsaltik

License

See the LICENSE file for license rights and limitations (MIT).

Keywords

FAQs

Last updated on 27 Apr 2021

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc