npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

assemble-metalsmith

0.1.1

@doowb

npmHomeRepoSnykSocket
Downloads:4
$ npm install assemble-metalsmith
DailyWeeklyMonthlyYearly

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

  • github/doowb
  • twitter/doowb

License

Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license


This file was generated by verb-cli on August 03, 2014.