lib/rack-xslview.rb in rack-xslview-0.0.1 vs lib/rack-xslview.rb in rack-xslview-0.0.2

- old
+ new

@@ -1,9 +1,5 @@ -require 'xml/libxml' -require 'xml/libxslt' - - module Rack class XSLView def initialize(app, options) @my_path_info = String.new @app = app @@ -31,10 +27,10 @@ end status, headers, @response = @app.call(env) [status, headers, self] end end - #response.each { |part| response_body += part } + # Need to get entire response before transforming def each(&block) mycontent = "" @response.each { |part| mycontent += part }