Closed mdesantis closed 12 years ago
You need to change your Sinatra's SASS settings to point to the right load paths. See issue #14. Let me know if this helps. Cheers!
It worked :-) Maybe it could be useful adding this custom configuration here https://github.com/rstacruz/sinatra-assetpack/blob/master/examples/compass/app.rb , something like this:
# Customize the scss folder (optional)
# If you want to change the scss folder you have to set some configurations
# (see https://github.com/chriseppstein/compass/wiki/Sinatra-Integration for further infos):
# set :sass, Compass.sass_engine_options
# set :sass, { :load_paths => sass[:load_paths] + [ "#{App.root}/assets/stylesheets" ] }
#
# set :scss, sass
#
# assets do
# serve '/css', :from => 'assets/stylesheets'
# end
I think it would be useful, because I found it hard to get informations about this error (I do not always open issues, but when I do, I spend two hours on Google before :D )
Oh, thanks for your library, It was just what I needed.
Sorry about that. I should probably add it to the readme... this is a fairly common concern afterall.
(Tech reason it works like this: AssetPack simply delegates Sass/Coffee/etc rendering to Sinatra, so you simply configure it the Sinatra way.)
Feel free to open a pull request to edit that file if you like, I'll merge it in. :)
Hello,
in my app I have
in public/scss/screen.scss:
In the Sinatra root folder:
But I have this error:
I have this error also if I uncomment the Compass configuration lines
But @import works for blueprint.