content-genesis
0.5.7 • Public • Published
Install
Use
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)
Related
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads