My question is similar to the one posted here. Essentially I would like to read a config file.json
looking like this:
{
"message": "Error in #{baseName} at #{directory}"
}
I would like to interpolate the message string using variables provided as a map / an object. Unlike in the question above, the string to be formatted is not known at compile time.
Is it possible to run a string interpolation using built-in methods in coffeescript or would I have to use mustaches or similar techniques?