https://github.com/doowb/assemble-metalsmith
Assemble v0.6.x plugin for running any metalsmith middlewares
https://github.com/doowb/assemble-metalsmith
Last synced: 6 months ago
JSON representation
Assemble v0.6.x plugin for running any metalsmith middlewares
- Host: GitHub
- URL: https://github.com/doowb/assemble-metalsmith
- Owner: doowb
- License: mit
- Created: 2014-08-01T22:32:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T02:54:34.000Z (almost 11 years ago)
- Last Synced: 2025-10-29T11:04:03.861Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# assemble-metalsmith [](http://badge.fury.io/js/assemble-metalsmith)
> Assemble v0.6.x plugin for running any metalsmith middlewares
## IMPORTANT! This plugin only works with [Assemble v0.6](https://github.com/assemble/assemble/tree/v0.6.0) and greater.
## Install
#### Install with [npm](npmjs.org):
```bash
npm i assemble-metalsmith --save-dev
```
## Usage
```js
var metalsmith = require('assemble-metalsmith')(assemble);
metalsmith
.use(drafts())
.use(markdown())
.use(permalinks('posts/:title'))
.use(templates('handlebars'));
assemble.src('path/to/pages/*.hbs')
.pipe(metalsmith())
.pipe(assemble.dest('dist'));
```
## API
### Metalsmith plugin
Assemble plugin to run metalsmith middleware
### .use
Add a middleware or plugin to use.
* `middleware` {Function}: this is the middleware to run.
* `return` {Object} this for chaining
## Author
**Brian Woodward**
+ [github/doowb](https://github.com/doowb)
+ [twitter/doowb](http://twitter.com/doowb)
## License
Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 03, 2014._