Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 0.697 kb
---
layout: default
title: Sinatra
id: home
---
<div class='pipe nav'>
<pre><a href='intro.html'>README</a>
<a href='documentation.html'>Documentation</a>
<a href='contributing.html'>Contribute</a>
<a href='http://github.com/sinatra/sinatra/'>Code</a>
<a href='http://github.com/sinatra/sinatra/contributors'>Crew</a>
<a href='about.html'>About</a>
</pre>
<p>Sinatra</p>
</div>
<div class='pipe ruby'>
<pre><code>require 'sinatra'
get '/hi' do
"Hello World!"
end</code></pre>
<p>Put this in<br>your pipe</p>
</div>
<div class='pipe shell'>
<pre><code>$ gem install sinatra
$ ruby hi.rb
== Sinatra has taken the stage ...
>> Listening on 0.0.0.0:4567
</code></pre>
<p>and smoke it</p>
</div>
Jump to Line
Something went wrong with that request. Please try again.