1.0.5 • Published 4 years ago
template-to-string v1.0.5
template-to-string
Javascript library to convert templates into string.
Installation
npm i template-to-stringUsage
const templateToString = require('template-to-string');
let myString = templateToString({
template:"Hi {name}, Welcome to {country}",
data:{
name:"Goutham",
country:"India"
}
})
console.log(myString); // Hi Goutham, Welcome to IndiaContributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.