0.1.1 • Published 10 years ago
assemble-metalsmith v0.1.1
assemble-metalsmith
Assemble v0.6.x plugin for running any metalsmith middlewares
IMPORTANT! This plugin only works with Assemble v0.6 and greater.
Install
Install with npm:
npm i assemble-metalsmith --save-dev
Usage
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
License
Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license
This file was generated by verb-cli on August 03, 2014.