Sinatra (Software)

Sinatra is a free and open source Webapplikationsbibliothek and written in Ruby domain-specific language. It is an alternative to other Ruby web application frameworks such as Ruby on Rails, Nitro, Camping and Rango. Sinatra presupposes the Rack web server interface.

Sinatra was designed and developed by Blake Mizerany and should be small and flexible. It does not follow the typical Model-View- Controller pattern that comes in other frameworks, such as Ruby on Rails, apply. Instead Sinatra aims to develop web applications quickly and with minimal effort.

Some major companies are using Sinatra, for example Apple, the BBC, LinkedIn, Engine Yard, Heroku, GitHub and Songbird. Heroku provides a large part of the financing of Sinatra available.

Sinatra was created in 2007 and placed under an open source license.

Example

#! / usr / bin / env ruby require ' sinatra '   get ' / ' do    redirect to ('/ hello / world ') end   get ' / hello /: name ' do    "Hello # { params [: name ]}! " end From Sinatra influenced Frameworks

Sinatra gave some Micro Framework inspired in Ruby and other programming languages. Normally try such frameworks, the DSL as well as possible to replicate Sinatra.

  • Ruby: Almost Sinatra, Astaire, Cuba, Padrino (based on Sinatra ), Pakyow, Renee
  • PHP Fat -Free, Fitzgerald, Glue, small, Laravel, lemonade, MiMViC, Silex, Slim
  • CoffeeScript: Zappa
  • Python: Bottle, Denied ( what to April Fools joke ), Flask, itty, Juno
  • Erlang (programming language): Fresh, Spooky
  • Groovy: Graffiti, Ratpack
  • Scala: Scalatra, Blue Eyes
  • . NET: Martin, Nancy, Nina
  • Perl: Dancer, Mojolicious
  • Java: Spark, napalm, Html Easy
  • Haskell: Bird, Loli
  • Fancy: Sinatra.fy
  • Bash: Astley, sh.inatra
  • C: Bogart
  • F #: Frank
  • Lua: Mercury Orbit
  • Mirah: Shatner
  • Objective- C: RCRouter
  • Vala: Valatra

In July 2011, discredited an individual or a group claiming to be members of the Sinatra team that Dancer project. This incident has led to the Sinatrateam publicly endorsed the Dancer project and other replicas.

731562
de