0.0.1 • Published 4 years ago
simple-render v0.0.1
#simple-render
const simpleRender = require('simple-render');
const string = '<p>Hello, %name%. The current weather is %weather%°.</p>'
const data = {
name: 'Connor Jury',
weather: '75'
}
const result = simpleRender(string, data);
<p>Hello, Connor Jury. The current weather is 75°.</p>
0.0.1
4 years ago