I think there are two questions here:
1) Is this practice used?
- Yes, you just used it. Browsers will support it, so someone out there will do it.
2) Most of the web pages are created from templates, Wordpress, etc.
You can go in a different direction and bypass the web server and create a program that directly responds to HTTP requests on port 80, but with the help of a web server you can get rid of programming problems and let you work with files. Using something other than touch index.html is another step beyond, using a more convenient way to get the html files you need.
This is not to say that all websites should be dynamic - for example, my own blog is written with middleman , which is very similar to writing a Rails application, except that you compile the application into static HTML files. It is much easier to write in something like Markdown, which is generated on a beautiful page, instead of manually editing HTML.
source share