Again, Perl was one of the favorite language to use to write these programs. The state of the web now is for a large part a mixture of static pages, automatically generated but still static pages, and scripts that dynamically generate pages. Most web servers have a mixture of these types of pages. Many web sites are run this way. It is also a development and maintenance nightmare.
Static pages are difficult to create and maintain, mainly because of the repetitiveness.
The color scheme of all the pages should look the same. The same types of fonts should be used on each page. If you want to turn all your web pages purple to protest against the mistreatment of dinosaurs, you need to edit the HTML code for each page to change their background color. Luckily many sophisticated authoring tools exist that can help you with this process. Even with them, however it is hard to build a consistent site, especially if more than one people works to build the site.