Sha256: 61dba4dc55be45d7ad0330f4b4b1663c45d0de57a83645ae3cacbd0862b0d74b

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

class Server < Sinatra::Base
  set :public, File.dirname(__FILE__) + '/public'
  
  get "/" do
    haml <<-HAML
!!!
%head
  %script{ :src => "jquery.js" }
  %script{ :src => "jquery-ui.js" }
  %script{ :src => "rxin_test.js" }
%body
  %style{ :type => "text/css" }
    :sass
      body, html
        :width 100%
        :height 100%
        :overflow hidden
        :margin 0px
        :padding 0px
      body
        :background-color #fff
      .target
        :background-color #000
        :display block
        :position absolute
        :width 50px
        :height 50px
        &.mouseover
          :background-color #f00
        &.mousedown
          :background-color #0f0
    HAML
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
casper-0.0.1.1 test/lib/server.rb
casper-0.0.1 test/lib/server.rb