Metalsmith plugin to include raw file contents in templates.
Paths are relative to metalsmith's "source" directory.
npm install metalsmith-raw
var raw = require('metalsmith-raw');
metalsmith.use(raw());
{
"plugins" : {
"metalsmith-raw": true
}
}
---
source : 'myfile.txt'
---
p !{raw(source)}
Apache-2.0