content-genesis

0.5.7 • Public • Published

logo

Build Status

Install

yarn add content-genesis

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

  1. You define a template ( like this example )
  2. Next, you define the variables which will be interpolated eg. let foo = {component: "Foo"}
  3. You call template(/template/path, variablesObject)

Related

Readme

Keywords

none

Package Sidebar

Install

npm i content-genesis

Weekly Downloads

1

Version

0.5.7

License

MIT

Unpacked Size

34.8 MB

Total Files

11

Last publish

Collaborators

  • alechp