0.0.5 • Published 6 years ago

builder-t v0.0.5

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

builder-t 👷‍♂️

Usefull to generate html string representation from template. Or anything else

Prerequisites

node 8 for util.promisify

Install

yarn add template-builder

Example

const fromTemplate = require('../index')

const result = await fromTemplate({
  from: path.join(__dirname, 'template.html'),
  values: {
    title: 'hello world',
    string: 'hello jhon',
  },
})