Method: Rack::Lacquer#call
- Defined in:
- lib/rack/lacquer.rb
#call(env) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rack/lacquer.rb', line 10 def call env @env = env.deep_dup status, headers, response = @app.call env response.map! { |part| process_includes part } if headers['Content-Type'] =~ /text\/html/ && response.respond_to?( :map! ) [status, headers, response] end |