Sha256: 930fd2d1274d6910ffd7676e26f078535538ed2903fde8d03f74714b713a3ea0

Contents?: true

Size: 295 Bytes

Versions: 10

Compression:

Stored size: 295 Bytes

Contents

require 'rubygems'
require 'capcode'
require 'faye'

module Capcode
  set :erb, "views"
  set :static, "public"
  use Faye::RackAdapter, :mount => '/comet'
  
  class Index < Route '/'
    def get
      @server = env['faye.server']
      render :erb => :index
    end
  end  
end

Capcode.run( )

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
Capcode-1.0.0 examples/soapbox/soapbox.rb
Capcode-0.9.9 examples/soapbox/soapbox.rb
Capcode-0.9.8 examples/soapbox/soapbox.rb
Capcode-0.9.7 examples/soapbox/soapbox.rb
Capcode-0.9.6 examples/soapbox/soapbox.rb
Capcode-0.9.5 examples/soapbox/soapbox.rb
Capcode-0.9.4 examples/soapbox/soapbox.rb
Capcode-0.9.3 examples/soapbox/soapbox.rb
Capcode-0.9.2 examples/soapbox/soapbox.rb
Capcode-0.9.1 examples/soapbox/soapbox.rb