jezdez/django_compressor — Issue #142: Support for versioned images, fonts, etc
Author: skoczen
Created: 2011-10-23 03:53:31+00:00
State: open

Hello,

Compressor is beautiful. The one missing piece for me is support for auto-versioning images, fonts, and the like. So, I've been working on a branch of `django_compressor` that gives it that ability.

I have it working (roughly), but it still needs quite a lot of cleanup, tests, and docs. My question to you is if you're interested in having this functionality in compressor. If you'd like to keep it solely css and js-focused, I understand. I'd be happy to fork to a completely different name in that case.

Basic functionality:

* Adds a `{% versioned_static %}` tag, used like ``
* Parsing of linked images, fonts, et al. from CSS files.
* Generates hash-based names (uses `CSS_HASHING_METHOD`) for all static files, saves them in `CACHE` with the css and js
* Works with the compressor niceties. Plays well (uses the innards of compressor) with staticfiles, storages, works offline, etc.

The branch is at https://github.com/GoodCloud/django_compressor/tree/versioned_static

I'm more than happy to take on getting the docs, tests, etc up to your specs if you're interested in bringing it into trunk.