content-genesis
v0.5.7
Published
generate interpolated content from template files
Readme

Install
yarn add content-genesisUse
const { template } = require("content-genesis");
let foo = { variable1: "Foo", variable2: "Bar" };
let fooTemplate = template("/path/to/template", foo);- See test for more detailed code.
How it works
- You define a template ( like this example )
- Next, you define the variables which will be interpolated
eg. let foo = {component: "Foo"} - You call
template(/template/path, variablesObject)
