In ES6/ES2015 I am importing a string from a JSON file:
import config from './file.json';
config.string; // => "${foo} does things"
Now I want to use that string as a template string in another function. All docs I can find will do it like
(foo) => `${foo} does things`
but I could not find anything on how to turn a "plain" string into a template string.
Is this even possible?