# pug-include-glob

> Allows glob patterns as paths for includes in Pug templates

Latest version **0.4.3** (published 2020-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install pug-include-glob
pnpm add pug-include-glob
yarn add pug-include-glob
bun add pug-include-glob
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.3 |
| Published | 2020-12-09 |
| First published | 2016-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jack Conway |
| Maintainers | jgconway |

## Links

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

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.6
- [pug-load](https://npm.io/package/pug-load.md) ^2.0.0
- [pug-walk](https://npm.io/package/pug-walk.md) ^1.0.0
- [minimatch](https://npm.io/package/minimatch.md) ^3.0.3

## Recent versions

- 0.4.3 (latest) — 2020-12-09
- 0.4.2 — 2019-08-29
- 0.4.1 — 2019-02-24
- 0.4.0 — 2019-02-22
- 0.3.3 — 2017-03-22
- 0.3.2 — 2016-11-02
- 0.3.1 — 2016-10-08
- 0.3.0 — 2016-10-08
- 0.2.0 — 2016-09-29
- 0.1.1 — 2016-08-04
- 0.0.1 — 2016-07-14

## README

[![Build Status](https://travis-ci.org/jgconway/pug-include-glob.svg?branch=master)](https://travis-ci.org/jgconway/pug-include-glob)

# pug-include-glob

Use glob patterns in your Pug include directives.

## Installation

```bash
$ npm install --save pug-include-glob
```

## Usage

```javascript
const pugIncludeGlob = require('pug-include-glob');
const pug = require('pug');

let html = pug.renderFile('path/to/template.pug', {
  plugins: [ pugIncludeGlob({ /* options */ }) ]
});
```

### Express

```javascript
res.render('view_name', { plugins: [ pugIncludeGlob({ /* options */ }) ] })
```

### Gulp

```javascript
gulp.src(src)
  .pipe(pug({ plugins: [ pugIncludeGlob({ /* options */ }) ] }))
  .pipe(gulp.dest(dest));
```

### Options

- `glob` - Options object passed to `node-glob` methods. See [node-glob](http://github.com/isaacs/node-glob) for details.
- `ignore` - Files that should not be checked by this plugin. Checking every file is time expensive so excluding files where possible is likely to improve performance.

## License
MIT &copy; Jack Conway

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