Sinatra (software)
File:Sinatralogo.png | |
Original author(s) | Blake Mizerany |
---|---|
Developer(s) | Konstantin Haase |
Initial release | 9 September 2007 |
Stable release | 1.4.7[1] / 24 January 2016 |
Written in | Ruby |
Operating system | Cross-platform |
Type | Web application framework |
License | MIT License |
Website | www |
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. It is named after musician Frank Sinatra.[2]
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."[3]
Some notable companies and institutions that use Sinatra include Apple,[4] BBC,[5] the British Government's Government Digital Service,[6] LinkedIn,[7] the National Security Agency,[8] Engine Yard, Heroku, GitHub,[9] and Songbird.[10] Travis CI provides much of the financial support for Sinatra's development.[11]
Sinatra was created and open-sourced in 2007.
Example
#!/usr/bin/env ruby
require 'sinatra'
get '/' do
redirect to('/hello/World')
end
get '/hello/:name' do
"Hello #{params[:name]}!"
end
References
<templatestyles src="Reflist/styles.css" />
Cite error: Invalid <references>
tag; parameter "group" is allowed only.
<references />
, or <references group="..." />
Further reading
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
- Lua error in package.lua at line 80: module 'strict' not found.
External links
- No URL found. Please specify a URL here or add one to Wikidata.
- Sinatra's GitHub repository
- Video of Blake Mizerany and Adam Wiggins at RubyConf 2008
- ↑ https://github.com/sinatra/sinatra/blob/v1.4.7/CHANGES
- ↑ Sinatra: About
- ↑ 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
- ↑ NSA Careers: The Programmer
- ↑ Lua error in package.lua at line 80: module 'strict' not found.
- ↑ Sinatra in The Wild
- ↑ Sinatra: About