# gulp-query-pug

> PUG plugin for [gulp-query](https://github.com/gulp-query/gulp-query)

Latest version **1.1.1** (published 2019-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-query-pug
pnpm add gulp-query-pug
yarn add gulp-query-pug
bun add gulp-query-pug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-01-06 |
| First published | 2017-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marat Nuriev |
| Maintainers | nurieff |
| Keywords | pug, jade, html, gulp, gulp-query, gulp-query-plugin |

## Links

- npm: https://www.npmjs.com/package/gulp-query-pug
- Repository: https://github.com/gulp-query/gulp-query-pug
- Homepage: https://github.com/gulp-query/gulp-query-pug#readme
- Issues: https://github.com/gulp-query/gulp-query-pug/issues
- npm.io page: https://npm.io/package/gulp-query-pug

## Dependencies (3)

- [gulp](https://npm.io/package/gulp.md) ^4.0.0
- [gulp-pug](https://npm.io/package/gulp-pug.md) ^4.0.1
- [gulp-query](https://npm.io/package/gulp-query.md) ^1.1.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2019-01-06
- 1.1.0 — 2019-01-05
- 1.0.1 — 2017-08-25
- 1.0.0 — 2017-08-25

## README

## gulp-query-pug
PUG plugin for [gulp-query](https://github.com/gulp-query/gulp-query)

Uses [pug](https://www.npmjs.com/package/pug)

This plugin provides high performance template engine.

```
npm install gulp-query gulp-query-pug
```

### Example
Paste the code into your `gulpfile.js` and configure it
```javascript
let build = require('gulp-query')
  , pug = require('gulp-query-pug')
;
build((query) => {
    query.plugins([pug])
      .pug('src/views/*.pug','html/','tpl')

      .pug({
        from: ['src/views/*.pug','src/views/auth/*.pug'],
        to: 'html/',
        name: 'views'
      })
      ;
});
```
And feel the freedom
```
gulp
gulp --production // For production
gulp watch // Watching change
gulp pug // Only for pug
gulp pug:tpl // Only pug:tpl
gulp pug:views watch // Watching change only for pug:views
...
```

### Options
```javascript
.pug({
    name: "task_name", // For gulp pug:task_name 
    from: "views/*.pug", // ['src/views/*.pug','src/views/auth/*.pug']
    to: "html/"
})
```

---
_Source: https://npm.io/package/gulp-query-pug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
