I have a scenario where I want to build a web page that only consists of static resources, so the server has no other responsibility than serving static files (that way I can deploy it to any server).
Still the pages have the same layout, only the inner content differs.
I have become quite familiar with the Razor syntax and I'm interested if there is any convenient way to build a page with it, only to export the output of pages.
For example I could build it with Razor View Pages run it on my development server visit every site, and save the HTML source from the browser into files, but that is neither automatic nor convenient.
What would be the best way to do this?
P.S. I don't really care if it's a build step generating the output, or something from the Task Runner Explorer, an executable, NodeJS process, etc. I also don't care about the ASP.NET version, or any dependencies it requires during development or build. I plan to build it locally anyway.