Clever Geek Handbook
📜 ⬆️ ⬇️

Sinatra

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 ofweb application development framework
AuthorBlake Miserani
Developerscommunity
Written onRuby
operating systemcross-platform software
First editionSeptember 9, 2007 ( 2007-09-09 )
Latest version2.0.3 [1] (June 9, 2018)
conditionactive
LicenseMIT license
Sitesinatrarb.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

  1. ↑ GitHub - sinatra / sinatra at v2.0.3
  2. ↑ Sinatra: README
  3. ↑ BBC Zeitgeist Archived on November 28, 2010.
  4. ↑ Sinatra in The Wild
  5. ↑ 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


Source - https://ru.wikipedia.org/w/index.php?title=Sinatra&oldid=97156969


More articles:

  • Anastasius II (Patriarch of Antioch)
  • Skate America 2006
  • Epsom
  • Dol de Brittany
  • Pratishakhya
  • Sweden at the 1924 Winter Olympics
  • Komleva, Gabriela Trofimovna
  • Jonsson, Gustav (skier)
  • Ganges dolphin
  • Crystal Castles (group)

All articles

Clever Geek | 2019