# get-assemble-partials

> get assemble partial files

Latest version **0.1.0** (published 2015-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-assemble-partials
pnpm add get-assemble-partials
yarn add get-assemble-partials
bun add get-assemble-partials
```

## 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.1.0 |
| Published | 2015-10-22 |
| First published | 2015-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | makotot |
| Maintainers | makotot |
| Keywords | assemble |

## Links

- npm: https://www.npmjs.com/package/get-assemble-partials
- Repository: https://github.com/makotot/get-assemble-partials
- Homepage: https://github.com/makotot/get-assemble-partials#readme
- Issues: https://github.com/makotot/get-assemble-partials/issues
- npm.io page: https://npm.io/package/get-assemble-partials

## Dependencies (1)

- [fs-utils](https://npm.io/package/fs-utils.md) ^0.6.0

## Recent versions

- 0.1.0 (latest) — 2015-10-22
- 0.0.4 — 2015-09-26
- 0.0.3 — 2015-09-12
- 0.0.2 — 2015-09-11
- 0.0.1 — 2015-09-11

## README

# get-assemble-partials

[![npm version](http://img.shields.io/npm/v/get-assemble-partials.svg?style=flat-square)](https://github.com/makotot/get-assemble-partials)
[![travis](http://img.shields.io/travis/makotot/get-assemble-partials.svg?style=flat-square)](https://github.com/makotot/get-assemble-partials)
[![dependencies](http://img.shields.io/david/makotot/get-assemble-partials.svg?style=flat-square)](https://github.com/makotot/get-assemble-partials)
[![devDependencies](http://img.shields.io/david/dev/makotot/get-assemble-partials.svg?style=flat-square)](https://github.com/makotot/get-assemble-partials)
[![License](http://img.shields.io/npm/l/get-assemble-partials.svg?style=flat-square)](https://github.com/makotot/get-assemble-partials)

> Get [assemble](http://assemble.io/) partial files


## Install

```sh
$ npm i --save get-assemble-partials
```


## Usage

In assemble plugin:
```js
var getPartials = require('get-assemble-partials');

module.exports = function (params, cb) {

  getPartials(params, function (err, data) {
    console.log(data);
    // => [ 'src/partials/footer.hbs',
            'src/partials/header.hbs',
            'src/partials/nav.hbs',
            ... ]
    cb();
  });
};

module.exports.options = {
  stage: 'render:post:pages'
};
```

## Options

### excludes

A list of glob pattern that you want to exclude.

type: `array`

```js
var getPartials = require('get-assemble-partials');

module.exports = function (params, cb) {

  var excludes = ['./src/partials/excludes/*.hbs'];

  getPartials(params, excludes, function (err, data) {
    console.log(data);
    // => [ 'src/partials/footer.hbs',
            'src/partials/header.hbs',
            'src/partials/nav.hbs',
            ... ]
    cb();
  });
};

module.exports.options = {
  stage: 'render:post:pages'
};
```


## License

MIT

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