10. Fly Me To The Moon
Sinatra “modular”
module Demo
class Application < Sinatra::Base
get '/' do
'Welcome!'
end
get '/hello/:name' do |name|
"Hello #{name}!"
end
end
end
12. Strangers In The Night
REST: GET, POST, PUT, DELETE
Rutas explicitas, catch all, o expresiones
regulares
Vistas y templates
Filters y Helpers
...lovers at first sight!