Sha256: abb56f91e2a2b178f809a7ebf0755810c682d7530ef00567cb6bd0b8b1adad98
Contents?: true
Size: 385 Bytes
Versions: 27
Compression:
Stored size: 385 Bytes
Contents
$:.unshift File.expand_path('../../../lib', __FILE__) require 'sinatra' require 'sinatra/assetpack' assets do # By default, Sinatra::AssetPack looks at ./app/css/, ./app/js/ and # ./app/images. Let's change this to look at ./css. serve '/css', from: 'css' css :main, [ '/css/*.css' ] end get "/" do css :main end __END__ @@ index <%= css :main %> <h1>Hello!</h1>
Version data entries
27 entries across 27 versions & 3 rubygems