themadcreator / metalsmith-raw

Metalsmith plugin to include raw file contents in templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Metalsmith plugin to include raw file contents in templates.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%