mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Stick to single quote; kill a blank line
This commit is contained in:
parent
2624423bdf
commit
6c9488e22a
1 changed files with 2 additions and 3 deletions
|
@ -203,7 +203,6 @@ and overridden on an individual basis.
|
|||
sass :stylesheet, :style => :expanded # overridden
|
||||
end
|
||||
|
||||
|
||||
=== Inline Templates
|
||||
|
||||
get '/' do
|
||||
|
@ -346,11 +345,11 @@ A route can punt processing to the next matching route using <tt>pass</tt>:
|
|||
|
||||
get '/guess/:who' do
|
||||
pass unless params[:who] == 'Frank'
|
||||
"You got me!"
|
||||
'You got me!'
|
||||
end
|
||||
|
||||
get '/guess/*' do
|
||||
"You missed!"
|
||||
'You missed!'
|
||||
end
|
||||
|
||||
The route block is immediately exited and control continues with the next
|
||||
|
|
Loading…
Reference in a new issue