Hi All !
I have started to develop a general preprocessor called gmac. You can use it for generating context sensitive configurations, static html pages with dynamic elements, ... Something like m4 or C preprocessor, but it is much more advanced (supports arrays, hash tables, file processing, calculations, regular expressions)
You can download it form (Win and Linux executable, src, doc): http://sourceforge.net/project/showfiles.php?group_id=160876
If you have any questions or any problems which you think gmac is able to solve, please, ask me. I try to add more features based on your feedback in the future.