I am having the following *.js
file:
var text = `
This is a test ${Company.Name}.
`
module.exports = {
text
};
My main file looks like the following:
const Company = {}
Company.Name = "Apple"
Basically, I would like to "render" the text and fill it with my predefined variable.
Any suggestions what is the best way to "load" the text file in the main file?
I appreciate your replies!