Sha256: 3720ffc563dabc369af692a184f966c8adcc6b93dbb975ef5719f513ea2d6259

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

module Golf
  class Rack
    
    def initialize(app = nil)
      @app = app if app
    end

    def call(env)
      #compile it before we pass it to static
      #Golf::Compiler.compile!(env)
      ['200', { 'Content-Type' => 'application/javascript', 'Content-Length' => '5'}, ['asasd']]
      #@app.call(env) if @app
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
golf-0.0.2 lib/golf/rack.rb
golf-0.0.1 lib/golf/rack.rb