--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Renders the block given as a parameter using chunked encoding.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "&blk:"
    body: A block that, when called, will use send_chunks to send chunks of data down to the server. The chunking will terminate once the block returns.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  def stream\n    prefix = '&lt;p&gt;'\n    suffix = &quot;&lt;/p&gt;\\r\\n&quot;\n    render_chunked do\n      IO.popen(&quot;cat /tmp/test.log&quot;) do |io|\n        done = false\n        until done\n          sleep 0.3\n          line = io.gets.chomp\n\n          if line == 'EOF'\n            done = true\n          else\n            send_chunk(prefix + line + suffix)\n          end\n        end\n      end\n    end\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: ":api: public"
full_name: Merb::ControllerMixin#render_chunked
is_singleton: false
name: render_chunked
params: (&blk)
visibility: public
