1.11.2 • Published 8 years ago
static-engine-frontmatter v1.11.2
static-engine-frontmatter
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-frontmatter')
var pluginA = require('plugin-a')
var cson = require('cson-parser')
engine([
pluginA,
frontmatter(cson.parse)
])
1.11.2
8 years ago
1.11.1
8 years ago
1.11.0
8 years ago
1.10.5
8 years ago
1.10.4
8 years ago
1.10.3
8 years ago
1.10.2
9 years ago
1.10.1
9 years ago
1.10.0
9 years ago
1.9.0
9 years ago
1.8.0
9 years ago
1.7.0
9 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
10 years ago
1.0.0
10 years ago