Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Commit

Permalink
Added sample sinatra app
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed May 12, 2010
1 parent c6987a0 commit c5c0bbf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/apps/sinatra/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source :gemcutter

gem 'sinatra', '>= 1.0'
gem 'sinatra-erb'
2 changes: 2 additions & 0 deletions test/apps/sinatra/config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require ::File.expand_path('../hello', __FILE__)
run Sinatra::Application
9 changes: 9 additions & 0 deletions test/apps/sinatra/hello.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'rubygems'
require 'sinatra'
require 'erb'

set :app_file, __FILE__

get '/' do
erb :index
end
1 change: 1 addition & 0 deletions test/apps/sinatra/views/index.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello world from Sinatra

0 comments on commit c5c0bbf

Please sign in to comment.