sinatra-assetpack

How do I get Twitter Bootstrap's Less files to work with Sinatra AssetPack?

淺唱寂寞╮ 提交于 2019-12-07 15:46:42
问题 I am trying to get Bootstrap's Less files working with Sinatra AssetPack, but I am getting Less parser errors. These errors lead me believe that the less files being imported through bootstrap.less are not aware of each other. I have an app.rb file: require 'sinatra/base' require 'sinatra/assetpack' class App < Sinatra::Base set :root, File.dirname(__FILE__) register Sinatra::AssetPack assets do css :bootstrap, [ '/css/bootstrap.css' ] end get '/' do erb :index end # start the server if ruby

How do I get Twitter Bootstrap's Less files to work with Sinatra AssetPack?

喜欢而已 提交于 2019-12-06 02:48:06
I am trying to get Bootstrap's Less files working with Sinatra AssetPack , but I am getting Less parser errors. These errors lead me believe that the less files being imported through bootstrap.less are not aware of each other. I have an app.rb file: require 'sinatra/base' require 'sinatra/assetpack' class App < Sinatra::Base set :root, File.dirname(__FILE__) register Sinatra::AssetPack assets do css :bootstrap, [ '/css/bootstrap.css' ] end get '/' do erb :index end # start the server if ruby file executed directly run! if app_file == $0 end I've copied all of the Bootstrap less files into the