Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (30 sloc) 0.687 kB
6d6c13c @rtomayko Initial crack at "Legend" design
rtomayko authored
1 ---
2 layout: default
3 title: Sinatra
4 id: home
5 ---
17a7f69 @rtomayko Put this in your pipe and smoke it.
rtomayko authored
6
573f374 @rtomayko Edgier landing page
rtomayko authored
7 <div class='pipe nav'>
50cd149 @sr same for the homepage
sr authored
8 <pre><a href='intro'>README</a>
9 <a href='documentation'>Documentation</a>
10 <a href='contributing'>Contribute</a>
573f374 @rtomayko Edgier landing page
rtomayko authored
11 <a href='http://github.com/sinatra/sinatra/'>Code</a>
5890582 @rkh Fix Crew link on home page.
rkh authored
12 <a href='http://github.com/sinatra/sinatra/contributors'>Crew</a>
50cd149 @sr same for the homepage
sr authored
13 <a href='about'>About</a>
573f374 @rtomayko Edgier landing page
rtomayko authored
14 </pre>
15 <p>Sinatra</p>
16 </div>
17
18 <div class='pipe ruby'>
b06f66f @rkh Do not recommend require 'rubygems' antipattern.
rkh authored
19 <pre><code>require 'sinatra'
7ea0554 @rkh add empty line in code example
rkh authored
20
573f374 @rtomayko Edgier landing page
rtomayko authored
21 get '/hi' do
17a7f69 @rtomayko Put this in your pipe and smoke it.
rtomayko authored
22 "Hello World!"
23 end</code></pre>
378cd80 @rtomayko Don't emphasis _this_ before foca said so ...
rtomayko authored
24 <p>Put this in<br>your pipe</p>
17a7f69 @rtomayko Put this in your pipe and smoke it.
rtomayko authored
25 </div>
26
573f374 @rtomayko Edgier landing page
rtomayko authored
27 <div class='pipe shell'>
41e37a3 @rtomayko Remove formatting from code sample on landing page
rtomayko authored
28 <pre><code>$ gem install sinatra
b06f66f @rkh Do not recommend require 'rubygems' antipattern.
rkh authored
29 $ ruby -rubygems hi.rb
17a7f69 @rtomayko Put this in your pipe and smoke it.
rtomayko authored
30 == Sinatra has taken the stage ...
41e37a3 @rtomayko Remove formatting from code sample on landing page
rtomayko authored
31 >> Listening on 0.0.0.0:4567
17a7f69 @rtomayko Put this in your pipe and smoke it.
rtomayko authored
32 </code></pre>
573f374 @rtomayko Edgier landing page
rtomayko authored
33 <p>and smoke it</p>
e50258e @rtomayko Add recent news to landing (just to show it can be done)
rtomayko authored
34 </div>
Something went wrong with that request. Please try again.