JavaScript Preprocessor
Posted on Monday August 10 2009
I spent the weekend working on a new project: a simple JavaScript preprocessor to enable conditional compilation in JavaScript code using the syntax of the C preprocessor (well, a subset of.) This will hopefully make it easy to generate multiple versions of your project to―for example―create a debug build, or a specialized version designed to work in restrictive environments. It can be called from JavaScript, an Ant build script, or the command line.