Hello to all.
There is a certain page with links to other pages, but other pages should be generated by clicking on the link, that is, have one common template. The problem is that although the essence of these pages is the same, but the number of identical elements on each page is different. We need to somehow figure out how to implement it. I imagine it this way: we click on the link, a function is started that parses the text file and gets the number of elements, the names and description of them from there. So we get the html page with our active elements.
How can this be smarter and simpler? It turns out that anyway, we need to fill in a text file according to certain rules. This is better than keeping 300 html pages or 300 functions for each. Or am I wrong? Or something I do not understand) Thank you.