I'd like to do something like this:
let template = `The first value is ${v1} and the second value is ${v2}`;
template.interpolate(v1,v2);
Is this possible in Javascript / Typescript? The documentation I've found contains the variables being interpolated into the template within the same context that the template string is created in.
As indicated in the comments there are a lot of ways to do this in Javascript, but I'm specifically wondering whether we can create predefined templates with backticks? For example the duplicate link uses quotes, which do not support multiline template markup.