metalsmith-raw

v0.2.0
Metalsmith plugin to include raw file contents in templates.
metalsmith include raw partial load read

metalsmith-raw

Metalsmith plugin to include raw file contents in templates.

Paths are relative to metalsmith's "source" directory.

Usage

Install

npm install metalsmith-raw

API

var raw = require('metalsmith-raw');
metalsmith.use(raw());

CLI (metalsmith.json)

{
  "plugins" : {
    "metalsmith-raw": true
  }
}

Example

index.jade

---
source : 'myfile.txt'
---
p !{raw(source)}

License

Apache-2.0

npm i metalsmith-raw

Metadata

  • Apache-2.0
  • Whatever
  • themadcreator@github
  • released 10/27/2015

Downloads

Maintainers