Permalink
Browse files

add classic style example

  • Loading branch information...
1 parent 073153c commit 487550aaf8c609d4377667b434b098ee1dc67e04 @stevenwilkin committed Mar 26, 2012
Showing with 26 additions and 1 deletion.
  1. +26 −1 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.