webapigen
Windows console program providing a front end to the cgic library
...The idea is to provide a collection of functions for an AJAX (or AJA JSON) environment, although it can be used to emit straight html. The program takes a specification of an api and generates cgiMain() along with some helper functions.
Whether it's worth messing about with a mini language to come up with a relatively simple program which most people would probably do in some scripting language is for you to decide. I enjoy concocting small languages and prefer c++ to such scripting languages (php, python, lua, javascript) as I have had passing contact with: if this is you, then you may like this effort.
...