sbecker/asset_packager — Issue #29: file list from package
Author: cambridgemike
Created: 2012-01-10 17:07:27+00:00
State: open

I've run into an interesting use case where I'd like to get back an array of files included in the package (instead of the style tags).

For instance, if the method were called stylesheet_files_merged, one could do:

# in development
stylesheet_files_merged(:base) = ["/stylesheets/screen.css", "/stylesheets/header.css"]

# in production
stylesheet_files_merged(:base) = ["/stylesheets/base_packaged.css"]

I took a look through the source, but the right combination of methods didn't jump out at me. Any advice?