rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
542 stars 97 forks source link

Stop local_file_for from modifying param in place #131

Closed bryfox closed 10 years ago

bryfox commented 10 years ago

I find squeeze! to be unexpected here (in calling methods named without !), and it looks like it might not be needed.

Specifically, I'd like to be able to use img() in a generic image_tag helper, without having to fork for local and remote assets. This change allows that, since if the local file isn't found, the original src is used.