I have written a simple httpapp executable that sit and watch a port, and deliver a page in response to a browser request. The example was from the tutorial, and it works fine. This program doesn't need an installed server.
I have also written CGI executables that work just as well, but require an installed server such as Apache or NGINX. I have not done fastCGI, but it doesn't look hard.
Either way, the pascal code can either generate the html, or it can read the information from a file, and send it back out.
I prefer the compiled over the scripted approach as the code is more locked down, and therefore perhaps less vulnerable. Plus, I vastly prefer the clean lines of Pascal.