static-engine-read
v1.9.2
Published
Plugin for static-engine. Provided a glob it searches for files and adds an object to the collection for each file found.
Downloads
33
Readme
static-engine-read
This is a plugin for static-engine. It takes a string that's passed to glob. It adds an object to the array for every file found. Each of those objects has two properties, file which is the file found, and content that is the content of that file.
var engine = require('static-engine')
var content = require('static-engine-read')
var pluginA = require('plugin-a')
engine([
pluginA,
content('./content/*')
])