assemble-metalsmith

0.1.1 • Public • Published

assemble-metalsmith NPM version

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.

Package Sidebar

Install

npm i assemble-metalsmith

Weekly Downloads

0

Version

0.1.1

License

none

Last publish

Collaborators

  • doowb
  • jonschlinkert