Built on top of PerlTeX, CoffeeXeLaTeX allows to script (Xe)(La)TeX documents using JacaScript and/or CoffeeScript. Easily extended to accommodate for your favorite language.