If my memory serves my right, theming was built on-top of C preprocessor.