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

Version Path
sinatra-assetpack-0.3.5 examples/classic/app.rb
sinatra-assetpack-0.3.3 examples/classic/app.rb
sinatra-assetpack-0.3.2 examples/classic/app.rb
sinatra-assetpack-0.3.1 examples/classic/app.rb
sinatra-assetpack-0.3.0 examples/classic/app.rb
sinatra-assetpack-0.2.8 examples/classic/app.rb
sinatra-assetpack-0.2.7 examples/classic/app.rb
sinatra-assetpack-0.2.6 examples/classic/app.rb
sinatra-assetpack-0.2.5 examples/classic/app.rb
sinatra-assetpack-0.2.4 examples/classic/app.rb
sinatra-assetpack-0.2.3 examples/classic/app.rb
sinatra-assetpack-0.2.2 examples/classic/app.rb
sinatra-assetpack-0.2.1 examples/classic/app.rb
sinatra-assetpack-0.2.0 examples/classic/app.rb
sinatra-assetpack-0.1.7 examples/classic/app.rb
sundawg-sinatra-assetpack-fork-0.1.6 examples/classic/app.rb
sinatra-assetpack-0.1.6 examples/classic/app.rb
sinatra-assetpack-0.1.5 examples/classic/app.rb
sinatra-assetpack-0.1.4 examples/classic/app.rb
sinatra-assetpack-0.1.3 examples/classic/app.rb