Skip to content

Instantly share code, notes, and snippets.

@eik3
Created April 17, 2011 16:07
Show Gist options
  • Save eik3/924169 to your computer and use it in GitHub Desktop.
Save eik3/924169 to your computer and use it in GitHub Desktop.
$ cat Gemfile
source :rubygems
gem "sinatra"
$ cat config.ru
require 'rubygems'
require 'bundler'
Bundler.require
require './my_app'
run MyApp
$ cat my_app.rb
require 'rubygems'
require 'sinatra/base'
class MyApp < Sinatra::Base
enable :static
set :public, "public"
get('/') { ".<img src='a.png'/>." }
end
$ ls public/
a.png favicon.ico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment