I have two different directories like
- dir 1 --> template 1 --> tpl1.html
- dir 2 --> template 1 --> tpl1.html
My requirement is dir 1 has all the js files, css files, icons etc.. but dir 2 will have only html file with same name like dir 1 html files.
Based on different domains on page load i need to make a decision which html needs to load.
I am using require js "text", I want to make the path of the text!path more dynamic.
Inside directory2 i want to check the length first, and then I want to pick the file.
Please suggest me a approach on this.