1.2.2 • Published 3 years ago

gulp-pug-3 v1.2.2

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

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).

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago