One alternative to avoid the `attributes_for` is to mimic its behavior with `File.basename(file).scan(/\.[^.]+/)`. Isn't that pretty but it removes the dependency of a no-so public API from Sprockets.