static-engine-collection
v6.0.0
Published
Plugin for static-engine. Allows you to operate on a property of each object in the collection, using static-engine plugins on it.
Downloads
5
Readme
static-engine-collection
This is a plugin for static-engine. It adds a property to each object in the array that is the result of static engine plugins. Call it with the name of the property and an array of plugins. It returns a function that can be used with static-engine.
var engine = require('static-engine')
var collection = require('static-engine-collection')
var pluginA = require('plugin-a')
var pluginB = require('plugin-b')
var pluginC = require('plugin-c')
engine([
pluginA,
collection('example', [pluginB, pluginC])
])