I would like to make a simple website without cloning HTML files.
I want to store a content in separate text files (or html) in subdirectories (e.g. pages/pagehome.txt, pages/pageabout.txt, pages/pagecontact.txt). I used tag, but it does not allow to reuse css for that embedded content.
I want to import that files to variables and to change divs via innerHTML tag. How can I import content from that files to variables? I don't want to use any complicated APIs or tons of code.
Is there available simply method to load files' content to variables using ONLY JS (No HTML or methods like invisible div with content)?