forked from sinatra/sinatra.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (31 loc) · 684 Bytes
/
index.html
File metadata and controls
34 lines (31 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
layout: default
title: Sinatra
id: home
---
<div class='pipe nav'>
<pre><a href='intro'>README</a>
<a href='documentation'>Documentation</a>
<a href='contributing'>Contribute</a>
<a href='http://github.com/sinatra/sinatra/'>Code</a>
<a href='http://github.com/sinatra/following'>Crew</a>
<a href='about'>About</a>
</pre>
<p>Sinatra</p>
</div>
<div class='pipe ruby'>
<pre><code>require 'rubygems'
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>