jhthorsen/mojolicious-plugin-assetpack — pull request #9 by alexander-rymasheusky (2014-04-09 11:42:37+00:00)
Title: No cache option (issue #8)

I've added an option to convert asset files each time they're expanded instead of once when they're added (issue #8). This avoids restarting the server when the source asset files change during development. The option is enabled by environment variable `MOJO_ASSETPACK_NO_CACHE`.

Jan, I made this option an attribute `_no_cache` instead of a constant because of the way it's tested in `no_cache.t`: first the option is enabled and app is created; then the option is disabled and app is created. Perl doesn't like it when constants are redefined in the same process. I don't think the difference between these approaches (constant vs attribute) is too big to necessitate changing the way it's tested.