Twitter's Bootstrap, adapted for Sinatra-Haml
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Twitter has released a very helpful toolkit recently called Bootstrap:

"Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more."

I like using Sinatra for getting Ruby apps up and running quickly and thought it would be nice if I could marry Sinatra and Bootstrap together. Sinatra allows for a number of template languages, but I tend to use Haml. I adapted one of the Bootstrap quick-start templates to Haml and thought I'd share it. If I get time I'll do the others as well.

One thing to note: each quick-start template references the bootstrap.css, but also includes a fair bit of additional styling in between <style></style> tags. I moved this all to an external stylesheet, launch.css.



rvm use 1.9.2

rvm gemset create bootstrap-haml

rvm gemset use bootstrap-haml

gem install sinatra

gem install haml

Run Sinatra

ruby -rubygems app.rb

View template