Skip to content

Commit

Permalink
add classic style example
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwilkin committed Mar 26, 2012
1 parent 073153c commit 487550a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion 02_basic/01_classic_style.md
@@ -1,3 +1,28 @@
!SLIDE

# Basic example
# Basic examples


!SLIDE

# "Classic" style

@@@ ruby
# 01_classic_style.rb
require 'sinatra'

get '/' do
"Hello World!"
end


!SLIDE

# Running it

$ ruby ./01_classic_style.rb
== Sinatra has taken the stage
>> Listening on 0.0.0.0:4567

$ curl http://0.0.0.0:4567
Hello World!

0 comments on commit 487550a

Please sign in to comment.