1
我想建立一个Sinatra项目来第一次使用Sass和Compass。我从https://github.com/chriseppstein/compass-sinatra下载了示例应用程序。 App.rb目前配置正确,可自动编译.sass文件,但是如何将其配置为查找.scss文件?配置指南针Sinatra使用scss
get '/stylesheets/:name.css' do
content_type 'text/css', :charset => 'utf-8'
sass(:"stylesheets/#{params[:name]}", Compass.sass_engine_options)
end