miracle2k/webassets — Issue #84: JSTFilter breaks internal caching
Author: markchadwick
Created: 2011-12-31 19:28:00+00:00
State: open

Disclaimer: I only have a cursory understanding of the webassets code

Because `webassets.filter.jst.JstFilter` writes no data to `out` when the `input` method is invoked, the caching system think it's generating the same output on every call. Because this is going to the internal cache, even removing the output file has no effect -- it will just be rebuilt from the same invalid cache.

I'm under-qualified to make recommendations on how to fix this, but I hacked around it by setting `out.dirty = True` in the filter and a `getattr(content, 'dirty', False)` check later on.

Thanks!