Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Twitter's Bootstrap, adapted for Sinatra-Haml
branch: master

This branch is even with bhenerey:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
views
README.mdown
app.rb

README.mdown

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 tags. I moved this all to an external stylesheet, launch.css.

Instructions

Prep

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

http://localhost:4567/

Something went wrong with that request. Please try again.