rstacruz / sinatra-assetpack

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

Use the request.script_name as a path prefix. #104

Closed bct closed 11 years ago

bct commented 11 years ago

This allows sinatra-assetpack to be used in applications that are mounted somewhere other than at the domain root without any configuration specific to the application.

e.g. if you put this in the Gemfile

map '/subpath' do
  run AssetpackDemo::App
end

it will just work as expected.

Fixes #92.

j15e commented 11 years ago

Awersome, thanks

j15e commented 11 years ago

Just released in 0.2.3!