Sinatra is a free and open-source Ruby framework for developing web applications. It is an alternative to such popular Ruby frameworks as Ruby on Rails and Merb .
| Sinatra | |
|---|---|
| Type of | web application development framework |
| Author | Blake Miserani |
| Developers | community |
| Written on | Ruby |
| operating system | cross-platform software |
| First edition | September 9, 2007 |
| Latest version | 2.0.3 [1] (June 9, 2018) |
| condition | active |
| License | MIT license |
| Site | sinatrarb.com |
The framework was designed and developed by Blake Miserani. Sinatra is a small and flexible application that, however, does not follow the typical Model-View-Controller pattern, which is often used in web frameworks like Ruby on Rails. Instead, Sinatra focuses on the idea of quickly building Ruby web applications with minimal effort. [2]
Several well-known companies are actively using Sinatra, including the BBC [3] , Engine Yard , Heroku , GitHub , and Songbird . [4] Heroku also sponsors the development of Sinatra. [five]
Example
#! / usr / bin / env ruby
require 'sinatra'
get '/' do
redirect to ( '/ hello / World' )
end
get '/ hello /: name' do
"Hello # { params [ : name ] } !"
end
Notes
- ↑ GitHub - sinatra / sinatra at v2.0.3
- ↑ Sinatra: README
- ↑ BBC Zeitgeist Archived on November 28, 2010.
- ↑ Sinatra in The Wild
- ↑ Sinatra: About
Links
- Official site of Sinatra . (eng.)
- Sinatra project on GitHub . (eng.)
- Sinatra documentation in Russian.
- Russian-language site dedicated to Sinatra .
- Home file hosting based on Sinatra and DataMapper. Part 1 - The Begining. Article on Habrahabr .
- Web Application Framework Comparison