fix readme example indentation
This commit is contained in:
parent
2eae9406ff
commit
c0e95f7011
12
README.rdoc
12
README.rdoc
|
@ -770,13 +770,13 @@ set the body at an arbritary point in the execution flow. You can do so with the
|
||||||
`body` helper method. If you do so, you can use that method from there on to
|
`body` helper method. If you do so, you can use that method from there on to
|
||||||
access the body:
|
access the body:
|
||||||
|
|
||||||
get '/foo' do
|
get '/foo' do
|
||||||
body "bar"
|
body "bar"
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
after do
|
||||||
puts body
|
puts body
|
||||||
end
|
end
|
||||||
|
|
||||||
It is also possible to pass a block to body, that will be executed by the rack
|
It is also possible to pass a block to body, that will be executed by the rack
|
||||||
handler (this can be used to implement streaming, see
|
handler (this can be used to implement streaming, see
|
||||||
|
|
Loading…
Reference in New Issue