builder-t
v0.0.5
Published
generate string representation with template feature
Downloads
2
Maintainers
Readme
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',
},
})