How to get effect like this?
name = 'Mark';
template = 'Your name is {{name}}';
console.log(template); // return "Your name is Mark";
name = 'John';
console.log(template); // return "Your name is John"
How to make some kind of easy template system for strings? Maybe function that will find for some tags ( {{ }} for example) and replace text inside with current variable? Or some method that is build in JS?