0.0.2 • Published 4 years ago
@polygonplanet-llc/simple-render v0.0.2
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>