Seems like you are using a dynamic server-side language, but it's just in mod-include's SSI language instead of something more conventional.
Secondly, as these are tightly integrated into httpd it turns out to be extremely efficient. I've been using mod-include in many ways for about 20 years.
Only files marked with execute attribute (+x) are handled by mod-include in my case.