A simple example to reproduce the Vue.js, AngularJs(or Angular2+), or React.js variable replacement system. In this case, it's can be used to change the language of the website with many json
files.
let vue = new Vue();
vue.getValues("assets/values.json").then(result => vue.replaceTemplateValue(result));
$ npm install
$ npm run serve
http-server="^0.12.3"
{
"_home.title": "Vue.js or not Vue.js...",
"test.message": "a test message",
"test.bis": "A second test Message",
"lorem.1": "Lorem ipsum ...",
"missing.in.html": "nothing to show here"
}