Skip to content

Instantly share code, notes, and snippets.

@krazylegz
Created October 21, 2011 19:27
Show Gist options
  • Select an option

  • Save krazylegz/1304707 to your computer and use it in GitHub Desktop.

Select an option

Save krazylegz/1304707 to your computer and use it in GitHub Desktop.
!!! 5
%html{:class => 'no-js', :lang => 'en'}
%head
-# To render a different stylesheet partial inside the head (i.e. for admin layout)
-# just copy _stylesheets.html.haml, and point to that partial instead.
= render "layouts/head", :stylesheet_partial => "layouts/stylesheets"
%body{ :class => "#{controller.controller_name}" }
#container
%header#header
= render "layouts/header"
#main{ :role => 'main' }
= render "layouts/flashes"
= yield
%footer#footer
= render "layouts/footer"
-# Javascript at the bottom for fast page loading
= render "layouts/javascripts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment