lib/views/layout.haml
!!! 5
%html(lang="en")
%head
%title= title
%link{:rel => 'stylesheet', :href => '//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css', :type => "text/css"}
-if defined? bootstrap_theme
%link{:rel => 'stylesheet', :href => bootstrap_theme, :type => "text/css"}
%body
-if defined? github[:ribbon]
%a{:href => "https://github.com/%s/%s" % [ github[:user], github[:project] ] }
%img{:style => "position: absolute; top: 0; right: 0; border: 0;",
:src => "https://s3.amazonaws.com/github/ribbons/forkme_%s.png" % [ github[:ribbon] ],
:alt => "Fork me on GitHub"}
.container
.col-md-2
.col-md-8
= yield
.col-md-2
%footer
%p.text-center
%a.btn.btn-default{:href => "http://github.com/%s/%s" % [ github[:user], github[:project] ] }Source on Github
%a.btn.btn-default{:href => "http://travis-ci.org/%s/%s" % [ github[:user], github[:project] ] }Built on Travis
%a.btn.btn-default{:href => "http://heroku.com"}Hosted on Heroku
%a.btn.btn-default{:href => "http://sam.pikesley.org"}More of my stuff