6.3.0 • Published 10 years ago

static-engine-converter-file v6.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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');
        }
    })
]);
6.3.0

10 years ago

6.2.2

10 years ago

6.2.1

10 years ago

6.2.0

10 years ago

6.1.0

10 years ago

6.0.2

10 years ago

6.0.1

10 years ago

6.0.0

10 years ago

5.0.0

10 years ago

4.1.0

10 years ago

4.0.1

10 years ago

4.0.0

10 years ago

3.1.0

10 years ago

3.0.0

10 years ago

2.1.0

10 years ago

2.0.1

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago