This package has been deprecated

Author message:

Use static-engine-params instead.

static-engine-converter-file

6.3.0 • Public • Published

static-engine-converter-file

Dependency Status devDependency Status js-standard-style

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-converter-file');
var pluginA = require('plugin-a');
var moment = require('moment');

engine([
    pluginA,
    file('./content/:categories+/:date.:slug.md', {
        date: function(date) {

            return moment(date, 'x');
        }
    })
]);

Readme

Keywords

Package Sidebar

Install

npm i static-engine-converter-file

Weekly Downloads

1

Version

6.3.0

License

MIT

Last publish

Collaborators

  • erickmerchant