mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
87 lines
1.6 KiB
HTML
87 lines
1.6 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>Write!</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>Example!</strong>
|
|
<pre>
|
|
get '/' do
|
|
"Now that's a fine looking dame!"
|
|
end</pre>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|