8.0.0 • Published 9 years ago

static-engine-converter-frontmatter v8.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

static-engine-converter-frontmatter

Dependency Status devDependency Status js-standard-style

This is a plugin for static-engine. Traverses every object in the array and extracts frontmatter from the content property. Call it with a converter for the frontmatter, something like JSON.parse, and then optionially a delimiter. By default the delimiter is ---; The properties of the frontmatter are assigned to the object, and the frontmatter along with the delims is removed from the content.

var engine = require('static-engine');
var frontmatter = require('static-engine-converter-frontmatter');
var pluginA = require('plugin-a');
var cson = require('cson-parser');

engine([
    pluginA,
    frontmatter(cson.parse)
]);
8.0.0

9 years ago

7.3.2

9 years ago

7.3.1

9 years ago

7.3.0

9 years ago

7.2.0

9 years ago

7.1.1

9 years ago

7.1.0

9 years ago

7.0.0

9 years ago

6.1.0

9 years ago

6.0.0

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.1.0

9 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.3

9 years ago

2.0.2

10 years ago

2.0.1

10 years ago

1.0.0

10 years ago