Permalink
Browse files

add tutorial_1

  • Loading branch information...
zhengjia committed Apr 24, 2011
1 parent ada7c67 commit f7736210bd96e6ddd818658be7cbc99c3fe953cd
Showing with 299 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +17 −0 Gemfile.lock
  3. +16 −0 README.rdoc
  4. +265 −0 app/tutorial_1/tutorial_1.rb
View
@@ -0,0 +1 @@
+gem 'sinatra', :path => 'sinatra'
View
@@ -0,0 +1,17 @@
+PATH
+ remote: sinatra
+ specs:
+ sinatra (1.3.0.c)
+ rack (~> 1.2)
+ tilt (~> 1.2, >= 1.2.2)
+
+GEM
+ specs:
+ rack (1.2.2)
+ tilt (1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ sinatra!
View
@@ -0,0 +1,16 @@
+I write this while I dig into sinatra source code myself. Please correct me if you find any mistakes or unclarity. Since Sinatra is short and concise, I hope the tutorial makes sense and it can keep pace with sinatra development with contributions from the community. The tutorial is prepared based on Sinatra 1.3.0c.
+
+If you want to run the tutorial, first do a bundle install, and then use command like bundle exec ruby app/tutorial_1/tutorial_1.rb
+Sinatra is added as a git submodule in the sinatra folder.
+As this tutorial is for sinatra, I don't include the full rack source. I only list some relevant code based on rack 1.2.2 (https://github.com/rack/rack/tree/1.2.2).
+If you need I recommend to use tux to play with sinatra https://github.com/cldwalker/tux
+
+It's assumed that you have read the sinatra README. Sinatra is well documented so that's the only thing you need for this tutorial.
+
+Content
+tutorial_1: sinatra start up
+tuturoal_2: extensions(work in progress)
+tutorial_3: routing(work in progress)
+tutorial_4: response
+tutorial_5: request cycle
+tutorial_6: templates
Oops, something went wrong.

0 comments on commit f773621

Please sign in to comment.