petebrowne/sprockets-sass — Issue #7: sprockets-sass, bootstrap-sass, sinatra... is it even possible?
Author: jessor
Created: 2012-02-18 09:45:32+00:00
State: open

I'm not sure I'm at the right place, but from what I understand the following should work.

Gemfile

```
gem "sinatra"
gem "shotgun"
gem "sprockets"
gem "sprockets-sass"
gem "sprockets-helpers"
gem "haml"
gem "sass"
...
```

config.ru

```
...
map '/static' do
environment = Sprockets::Environment.new
environment.append_path 'static/javascripts'
environment.append_path 'static/stylesheets'
environment.append_path 'vendor/bootstrap-sass/vendor/assets/javascripts'
environment.append_path 'vendor/bootstrap-sass/vendor/assets/images'

Sprockets::Helpers.configure do |config|
config.environment = environment
config.prefix = '/static/images'
config.digest = false
end

run environment
end
...
```

Twitter Bootstrap as bootstrap-sass resides as a git submodule in vendor/bootstrap-sass and `//= require bootstrap` in my javascript files does work, however, requiring the bootstrap scss file does not.

I tried with sprockets' `//=` syntax and `@import`... it can't find the file. When I include it through a relative path like `@import "../../vendor/bootstrap-sass/vendor/assets/stylesheets/_bootstrap.scss";`it works, but asset-url is not getting replaced.

I chose the route without compass because I want to be able to keep updating against bootstrap-sass changes and from what I read it really should work, shouldn't it?

All gems are up-to-date. Thanks!