Sinatra (software): Difference between revisions
updated to v2.0.0 |
m fixed the version changelog URL for reference list |
||
Line 7: | Line 7: | ||
| developer = [http://rkh.im/ Konstantin Haase] |
| developer = [http://rkh.im/ Konstantin Haase] |
||
| released = {{start date|2007|09|09|df=yes}} |
| released = {{start date|2007|09|09|df=yes}} |
||
| latest release version = 2.0.0<ref> |
| latest release version = 2.0.0<ref>https://github.com/sinatra/sinatra/blob/v2.0.0/CHANGELOG.md</ref> |
||
| latest release date = {{start date and age|2017|05|07|df=yes}} |
| latest release date = {{start date and age|2017|05|07|df=yes}} |
||
| latest preview version = |
| latest preview version = |
Revision as of 03:34, 8 May 2017
Original author(s) | Blake Mizerany |
---|---|
Developer(s) | Konstantin Haase |
Initial release | 9 September 2007 |
Stable release | 2.0.0[1]
/ 7 May 2017 |
Repository | |
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[2] 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.[3]
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."[4]
Some notable companies and institutions that use Sinatra include Apple,[5] BBC,[6] the British Government's Government Digital Service,[7] LinkedIn,[8] the National Security Agency,[9] Engine Yard, Heroku, GitHub,[10] and Songbird.[11] Travis CI provides much of the financial support for Sinatra's development.[12]
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
- ^ https://github.com/sinatra/sinatra/blob/v2.0.0/CHANGELOG.md
- ^ "Taking the Stage - Sinatra: Up and Running". Safaribooksonline.com. Retrieved 2016-10-21.
- ^ 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
- ^ "Open Source (Almost) Everything". 22 November 2011. Retrieved 16 January 2015.
- ^ Sinatra in The Wild
- ^ Sinatra: About
Further reading
- Harris, Alan; Haase, Konstantin (November 2011). "Sinatra: Up And Running" (First ed.). O'Reilly Media: 120. ISBN 978-1-4493-0423-2.
{{cite journal}}
: Cite journal requires|journal=
(help) - Harper, Dan. "Singing with Sinatra — nettuts".
- "Sinatra Book".