1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/site/index.htm
2007-10-05 10:58:11 -07:00

104 lines
2.3 KiB
HTML

<!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>Docs!</strong><br />
<pre><a href="http://sinatra.rubyforge.org/doc/">here</a></pre>
</p>
<p>
<strong>Can you <a href="http://digg.com/programming/Sinatra_Classy_web_development_dressed_in_a_DSL">digg</a> it cats?</strong><br />
<pre><a href="http://sinatra.rubyforge.org/doc/">here</a></pre>
</p>
<p>
<strong>Contribute!</strong><br />
<pre><a href="http://repo.or.cz/w/sinatra.git">using git</a></pre>
</p>
</div>
</div>
</div>
</body>
</html>