Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

erickmerchant/static-engine-defaults

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

static-engine-defaults

Dependency Status devDependency Status js-standard-style

This is a plugin for static-engine. Reads default properties from a file and then uses object-assign to apply them to the existing objects. It should not overwrite existing properties but should set ones that don't exist. Call it with the path to the file and a converter for the content like JSON.parse.

var engine = require('static-engine')
var defaults = require('static-engine-defaults')
var cson = require('cson-parser')
var pluginA = require('plugin-a')

engine([
  pluginA,
  defaults('./content/defaults.cson', cson.parse)
])

About

A plugin for static-engine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published