1.10.2 • Published 7 years ago
static-engine-params v1.10.2
static-engine-params
This is a plugin for static-engine. Traverses every object in the collection and matches up all file properties to a route. Parameters from that matching are added to the object. Call it with a string that's the route to match and a object that is converters for the parameters.
var engine = require('static-engine')
var file = require('static-engine-params')
var pluginA = require('plugin-a')
var moment = require('moment')
engine([
pluginA,
file('./content/:categories+/:date.:slug.md', {
date: function (date) {
return moment(date, 'x')
}
})
])
1.10.2
7 years ago
1.10.1
7 years ago
1.10.0
7 years ago
1.9.5
8 years ago
1.9.4
8 years ago
1.9.3
8 years ago
1.9.2
8 years ago
1.9.1
8 years ago
1.9.0
8 years ago
1.8.0
8 years ago
1.7.0
8 years ago
1.6.0
9 years ago
1.5.0
9 years ago
1.4.0
9 years ago
1.3.0
9 years ago
1.2.1
9 years ago
1.2.0
9 years ago
1.1.0
9 years ago
1.0.0
9 years ago