Sunday, August 21, 2011

Installing Sinatra on Ubuntu (11.04)

I installed sinatra, a lightweight web framework, on my Ubuntu (11.04).

1. Resources

Sinatra Ruby: http://www.sinatrarb.com/

2. Installation.

$ sudo gem install sinatra
Successfully installed tilt-1.3.2        # what is this?
Successfully installed sinatra-1.2.6
2 gems installed
Installing ri documentation for tilt-1.3.2...
Installing ri documentation for sinatra-1.2.6...
Installing RDoc documentation for tilt-1.3.2...
Installing RDoc documentation for sinatra-1.2.6...
$ irb
irb(main):001:0> require 'sinatra'      # check installation
=> true
irb(main):002:0> exit

3. What is Tilt?

The sinatra installer installed tilt. What is tilt?
According to the tilt site, it is "a thin interface over a bunch of different Ruby template engines in an attempt to make their usage as generic possible." It seems to support a very large number of template engines, including ERB, Haml, Erubis, Maruku, Radius, RedCloth, BlueCloth, etc.

No comments:

Post a Comment