Sha256: b219aae717b71ff606fdab0fb067176a9b6c1576b63fa30a3edb0294afc1f75a
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
require 'rubygems' require 'capcode' require 'capcode/render/erb' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
Capcode-0.9.0 | examples/soapbox/soapbox.rb |
Capcode-0.8.9 | examples/soapbox/soapbox.rb |