0.5.7 • Published 6 years ago

content-genesis v0.5.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

0.5.7

6 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago