A question prompted by jbar's question.
In scripting languages like Python, Ruby, and Perl, there are libraries that simplify generating dynamic HTML. (For example, the cgi module in Ruby.)
Are there any similar packages for C++? I don't know of one, and at least some desultory googling didn't reveal one.
Cgicc does HTML generation. I've toyed with it once, and it seemed pretty nice.
http://www.webtoolkit.eu/wt#/
I don't know anything about it, but their web-page is clean and the introduction sounds like exactly what you're looking for...
...