Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.337 kb
require 'wunderbar/sinatra'
get '/' do
_html do
_title 'Greeter'
_style "input {display: block; margin: 2em}"
_form method: 'post' do
_p 'Please enter your name:'
_input name: 'name'
_input type: 'submit'
end
end
end
post '/' do
_html do
_title 'Greeter'
_p "Hello #{@name}!"
end
end
Jump to Line
Something went wrong with that request. Please try again.