Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (30 sloc) 0.687 kb
6d6c13c Ryan Tomayko Initial crack at "Legend" design
rtomayko authored
1 ---
2 layout: default
3 title: Sinatra
4 id: home
5 ---
17a7f69 Ryan Tomayko Put this in your pipe and smoke it.
rtomayko authored
6
573f374 Ryan Tomayko Edgier landing page
rtomayko authored
7 <div class='pipe nav'>
50cd149 Simon Rozet 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 Ryan Tomayko Edgier landing page
rtomayko authored
11 <a href='http://github.com/sinatra/sinatra/'>Code</a>
5890582 Konstantin Haase Fix Crew link on home page.
rkh authored
12 <a href='http://github.com/sinatra/sinatra/contributors'>Crew</a>
50cd149 Simon Rozet same for the homepage
sr authored
13 <a href='about'>About</a>
573f374 Ryan Tomayko Edgier landing page
rtomayko authored
14 </pre>
15 <p>Sinatra</p>
16 </div>
17
18 <div class='pipe ruby'>
b06f66f Konstantin Haase Do not recommend require 'rubygems' antipattern.
rkh authored
19 <pre><code>require 'sinatra'
7ea0554 Konstantin Haase add empty line in code example
rkh authored
20
573f374 Ryan Tomayko Edgier landing page
rtomayko authored
21 get '/hi' do
17a7f69 Ryan Tomayko Put this in your pipe and smoke it.
rtomayko authored
22 "Hello World!"
23 end</code></pre>
378cd80 Ryan Tomayko Don't emphasis _this_ before foca said so ...
rtomayko authored
24 <p>Put this in<br>your pipe</p>
17a7f69 Ryan Tomayko Put this in your pipe and smoke it.
rtomayko authored
25 </div>
26
573f374 Ryan Tomayko Edgier landing page
rtomayko authored
27 <div class='pipe shell'>
41e37a3 Ryan Tomayko Remove formatting from code sample on landing page
rtomayko authored
28 <pre><code>$ gem install sinatra
b06f66f Konstantin Haase Do not recommend require 'rubygems' antipattern.
rkh authored
29 $ ruby -rubygems hi.rb
17a7f69 Ryan Tomayko Put this in your pipe and smoke it.
rtomayko authored
30 == Sinatra has taken the stage ...
41e37a3 Ryan Tomayko Remove formatting from code sample on landing page
rtomayko authored
31 >> Listening on 0.0.0.0:4567
17a7f69 Ryan Tomayko Put this in your pipe and smoke it.
rtomayko authored
32 </code></pre>
573f374 Ryan Tomayko Edgier landing page
rtomayko authored
33 <p>and smoke it</p>
e50258e Ryan Tomayko 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.