Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

101 lines (90 sloc) 2.083 kb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Sinatra : Classy web-development dressed in a DSL</title>
</head>
<body>
<style type="text/css" media="screen">
body {
background-color: #fff;
color: #333;
font-size: 0.75em;
}
#container {
width: 600px;
margin: 0 auto;
font-size: 1.5em;
}
#container pre {
font-size: .8em;
background-color: #F5F6C9;
width: 100%;
}
#container note {
font-size: .7em;
}
#banner {
width: 600px;
text-align: center;
}
pre {
padding: 10px;
}
.clear {
clear: both;
}
</style>
<div id="container">
<div id="banner">
<img src='logo.png' />
<h2><em>Classy web-development dressed in a DSL</em></h2>
</div>
<div class="clear"></div>
<div>
<div>
<p>
<strong>Install!</strong><br/>
<pre>gem install sinatra -y</pre>
</p>
<p>
<strong>Require!</strong> (any filename you wish)<br/>
<pre>
# lyrics.rb
require 'rubygems'
require 'sinatra'</pre>
<note>yup.. that's it for a sec</note><br />
</p>
<p>
<strong>Run!</strong><br />
<pre>ruby lyrics.rb</pre>
</p>
<p>
<strong>Bask!</strong><br />
<pre>http://localhost:4567</pre>
</p>
<p>
<strong>Write!</strong>
<pre>
get '/' do
"Now that's a fine looking dame!"
end</pre>
</p>
<p>
<strong>Examples!</strong><br />
<pre><a href="http://repo.or.cz/w/sinatra.git?a=tree;f=examples;h=fd7513e49762738ad945adbb2e15bb31528b4207;hb=HEAD">here</a></pre>
</p>
<p>
<strong>Contribute!</strong><br />
<pre><a href="http://repo.or.cz/w/sinatra.git">using git</a></pre>
</p>
<p>
<strong>Docs!</strong><br />
<pre><a href="http://sinatra.rubyforge.org/doc/">here</a></pre>
</p>
</div>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.