No description
Find a file
Ian Storm Taylor 71a790621c 0.0.4
* switch to `extend` from `defaults` to avoid cloning
* add debug statements
2014-02-06 23:14:17 -08:00
lib 0.0.4 2014-02-06 23:14:17 -08:00
test 0.0.4 2014-02-06 23:14:17 -08:00
.gitignore first commit 2014-02-04 21:47:35 -08:00
History.md 0.0.4 2014-02-06 23:14:17 -08:00
Makefile first commit 2014-02-04 21:47:35 -08:00
package.json 0.0.4 2014-02-06 23:14:17 -08:00
Readme.md first commit 2014-02-04 21:47:35 -08:00

metalsmith-templates

A metalsmith plugin to render files with templates.

Installation

$ npm install metalsmith-templates

CLI Usage

Install the node modules and then add the metalsmith-templates key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-templates": {
      "engine": "handlebars",
      "directory": "templates"
    }
  }
}

Javascript Usage

Pass options to the templates plugin and pass it to Metalsmith with the use method:

var templates = require('metalsmith-templates');

metalsmith.use(templates({
  engine: 'swig',
  directory: 'templates'
}));

License

MIT