There is an online journal site consisting of a main page and a set of articles - now they are all separate static pages such as index.html, article1.html, article2.html, etc. But there was a desire to arrange all this in the form of an application (SPA), so that there would be one template and just load the body of the article into it.
Question : in what form then store the text of articles on the server? Those. A lot of text with markup.
I get a solution using:
<link rel="import" href="/folder/article1.html"> Then, accordingly, I will keep the text of the article in the form of ready-made markup, but can someone know a more elegant solution?
For example, is it possible in some form to use json for this and how then to deal with the markup?