1.10.2 • Published 8 years ago

static-engine-params v1.10.2

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

static-engine-params

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-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

8 years ago

1.10.1

9 years ago

1.10.0

9 years ago

1.9.5

9 years ago

1.9.4

9 years ago

1.9.3

9 years ago

1.9.2

9 years ago

1.9.1

9 years ago

1.9.0

9 years ago

1.8.0

9 years ago

1.7.0

9 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago