At my workplace we have to write code that works in IE8+, which means no ES6 goodness. I like the ease of ES6 template literals and so I ran up this tiny inline-function that takes a template string and returns it with the tokens populated by contextually-available variables, or the result of an expression. It uses eval() to do the magic, so some sanitising might be advised depending on your code scenario. Comments welcome on the pen below.