Sinatra (software)
![]() |
|
| Original author(s) | Blake Mizerany |
|---|---|
| Developer(s) | Konstantin Haase |
| Initial release | 9 September 2007 |
| Stable release | 1.4.2 / 21 March 2013 |
| Written in | Ruby |
| Operating system | Cross-platform |
| Type | Web application framework |
| License | MIT License |
| Website | www.sinatrarb.com |
Sinatra is a free and open source software web application library and domain-specific language written in Ruby. It is an alternative to other Ruby web application frameworks such as Ruby on Rails, Merb, Nitro and Camping. It is dependent on the Rack web server interface.
Designed and developed by Blake Mizerany, Sinatra is small and flexible. It does not follow the typical model–view–controller pattern used in other frameworks, such as Ruby on Rails. Instead, Sinatra focuses on "quickly creating web-applications in Ruby with minimal effort."[1]
Some notable companies and institutions that use Sinatra include Apple,[2] BBC,[3] the British Government,[4] LinkedIn,[5] Engine Yard, Heroku, GitHub, and Songbird.[6] Travis CI provides much of the financial support for Sinatra's development.[7]
Sinatra was created and open-sourced in 2007.
Contents |
Example [edit]
#!/usr/bin/env ruby require 'sinatra' get '/' do redirect to('/hello/World') end get '/hello/:name' do "Hello #{params[:name]}!" end
Frameworks inspired by Sinatra [edit]
Sinatra has inspired a lot of micro frameworks in Ruby and other programming languages. Usually such frameworks try to closely mimic the Sinatra DSL.
- Ruby: Almost Sinatra,[8] Astaire,[9] Cuba,[10] Padrino (based on Sinatra),[11] Pakyow,[12] Renee,[13] Scorched[14]
- PHP: Fat-Free Framework, Fitzgerald,[15] Glue,[16] klein,[17] Laravel,[18] Limonade,[19] MiMViC,[20] Silex,[21] Slim[22]
- JavaScript: Express,[23] Picard,[24] Roundabout,[25] Sammy[26]
- CoffeeScript: Zappa[27]
- Python: Bottle,[28] Denied[29] (was an April Fools joke),[30] Flask,[31] itty,[32] Juno[33]
- Erlang: Fresh,[34] Spooky[35]
- Groovy: Graffiti,[36] Ratpack[37]
- Scala: Finatra,[38] Scalatra,[39] BlueEyes,[40]
- .NET: Martin,[41] Nancy,[42] Nina[43]
- Perl: Dancer, Mojolicious[44]
- Java: Spark,[45] Napalm,[46] Htmleasy[47]
- Haskell: Bird,[48] Miku,[49] Scotty [50]
- Fancy: Sinatra.fy[51]
- Bash: Astley,[52] sh.inatra[53]
- C: Bogart[54]
- F#: Frank[55]
- Lua: Mercury,[56] Orbit[57]
- Mirah: Shatner[58]
- Objective-C: RCRouter[59]
- Vala: Valatra[60]
In July 2011, some unknown individual or group, posing as various members of the Sinatra core team, discredited the Dancer project. This incident led to the Sinatra team publicly endorsing Dancer and other clones.[61]
References [edit]
- ^ Sinatra: Readme
- ^ Open Source software used by Apple
- ^ BBC Zeitgeist
- ^ O'Reilly radar: With GOV.UK, British government redefines the online government platform
- ^ JRubyfying LinkedIn's Front-end
- ^ Sinatra in The Wild
- ^ Sinatra: About
- ^ Almost Sinatra
- ^ Astaire
- ^ Cuba
- ^ Padrino
- ^ Pakyow
- ^ Renee
- ^ Scorched
- ^ Fitzgerald
- ^ Glue
- ^ klein
- ^ Laravel
- ^ Limonade
- ^ MiMViC
- ^ Silex
- ^ Slim
- ^ Express
- ^ Picard
- ^ Roundabout
- ^ Sammy
- ^ Zappa
- ^ Bottle
- ^ Denied
- ^ Armin Ronacher: April 1st Post Mortem
- ^ Flask
- ^ itty
- ^ Juno
- ^ Fresh
- ^ Spooky
- ^ Graffiti
- ^ Ratpack
- ^ Finatra
- ^ Scalatra
- ^ BlueEyes
- ^ Martin
- ^ Nancy
- ^ Nina
- ^ Mojolicious::Lite
- ^ Spark
- ^ Napalm
- ^ Htmleasy
- ^ Bird
- ^ [1]
- ^ scotty
- ^ Sinatra.fy
- ^ Astley
- ^ sh.inatra
- ^ Bogart
- ^ Frank
- ^ Mercury
- ^ Orbit
- ^ Shatner
- ^ RCRouter
- ^ Valatra
- ^ "Sinatra Loves Dancer"
Further reading [edit]
- Harris, Alan; Haase, Konstantin (November 2011). Sinatra: Up And Running (First ed.). O'Reilly Media. p. 120. ISBN 978-1-4493-0423-2.
- Millwood, Tim. "Sinatra - Millwood Online".
- Harper, Dan. "Singing with Sinatra - nettuts".
- "Sinatra Book".
External links [edit]
- Official website
- Sinatra's GitHub repository
- Video of Blake Mizerany and Adam Wiggins at RubyConf 2008
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
