Over the holiday I built a proof of concept for the Pakyow Assets library planned as part of the 1.0 release. It's pretty simple but does everything I wanted initially, including:
- Easily extended with new preprocessors (following the defined view processor pattern)
- Serving assets during development and rebuilding on-demand as necessary
- Fingerprinting and caching support in production, including the option to minify via yui-compressor
- Multiple asset stores for mixing in assets from an external library
In the spirit of my proof of concept libraries, there are no tests so this isn't intended to be used in production (I actually didn't sit down to write an assets library; I just wanted to play with a few ideas). Still, I'd appreciate your feedback. Here's the repository:
Take a look at the README for the overview, then glance at the code (there isn't much). I plan to rebuild the library in the coming weeks to write tests and incorporate anything we learn from this experiment.