Sha256: 23181e807385cfe3b39a93e76c175a3950e5d75843186c42db0010499fd10cac

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

class SnowballApp < Sinatra::Base
  register Sinatra::Snowball
  snowball do
    http_path "/js"
    source_path "spec/fixtures/js"
    source_path "spec/fixtures/js/food"
    raw "*/js/raw-2.js"
    raw "*/js/raw.coffee"
  end

  get "/javascript_tag" do
    haml '= javascript_tag("some")'
  end

  get "/javascript_tag_async" do
    haml '= javascript_tag("pastry/tart", async: true)'
  end

  get "/javascript_path" do
    haml "%script{:src => javascript_path('food/steak')}"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
snowball-0.1.22 spec/fixtures/snowball_app.rb
snowball-0.1.21 spec/fixtures/snowball_app.rb
snowball-0.1.20 spec/fixtures/snowball_app.rb
snowball-0.1.9 spec/fixtures/snowball_app.rb
snowball-0.1.8 spec/fixtures/snowball_app.rb
snowball-0.1.7 spec/fixtures/snowball_app.rb
snowball-0.1.6 spec/fixtures/snowball_app.rb