https://github.com/orcunsaltik/gulp-pug-3
Gulp plugin for compiling Pug templates using the latest stable version of Pug Template Engine.
https://github.com/orcunsaltik/gulp-pug-3
es6 gulp gulp-plugin gulp-plugins gulp4 gulpjs gulpjs-4 html jade jade-templates javascript js node node-js node-module nodejs pug pug-templates
Last synced: 3 months ago
JSON representation
Gulp plugin for compiling Pug templates using the latest stable version of Pug Template Engine.
- Host: GitHub
- URL: https://github.com/orcunsaltik/gulp-pug-3
- Owner: orcunsaltik
- License: mit
- Created: 2020-07-10T20:12:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T22:45:18.000Z (about 4 years ago)
- Last Synced: 2025-01-31T10:36:11.759Z (3 months ago)
- Topics: es6, gulp, gulp-plugin, gulp-plugins, gulp4, gulpjs, gulpjs-4, html, jade, jade-templates, javascript, js, node, node-js, node-module, nodejs, pug, pug-templates
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gulp-pug-3
- Size: 39.1 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gulp Pug 3
[](https://travis-ci.com/orcunsaltik/gulp-pug-3)
[](https://david-dm.org/orcunsaltik/gulp-pug-3)
[](https://david-dm.org/orcunsaltik/gulp-pug-3?type=dev)
[](https://codeclimate.com/github/orcunsaltik/gulp-pug-3/maintainability)


[](https://npmjs.org/package/gulp-pug-3)
[](https://github.com/orcunsaltik/gulp-pug-3/issues)
Compiles your pug templates into 'html' or 'js' easily and always uses the latest stable version of Pug Template Engine.
## Install
``` bash
npm install --save-dev gulp-pug-3
```## Api
In addition to Pug's API: client, extension and locals options are available.
## Example
```javascript
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](https://github.com/orcunsaltik)
## License
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).