jezdez/django_compressor — pull request #236 by matthewwithanm (2012-03-19 04:01:25+00:00)
Title: Precompiler Class Support

Here's the change we talked about in #179, allowing us to define precompiler classes instead of using executables. I've also included a test (to make sure that the class form of the `COMPRESS_PRECOMPILER` tuple is used) and a small addition to the docs.

Let me know if this is what you had in mind. As I mentioned in #179, I'm a little uneasy about the string pulling double duty—since we're using import errors to trigger compressor to treat the value as a command, we lose the ability to recognize true import errors. (Also, it feels a bit like a magic switch.) Still, I think the ability to keep the compilation step entirely in Python is a super useful addition.