Skip to content

Instantly share code, notes, and snippets.

@chriskottom
Created April 19, 2011 12:49
Show Gist options
  • Save chriskottom/927432 to your computer and use it in GitHub Desktop.
Save chriskottom/927432 to your computer and use it in GitHub Desktop.
A HAML-based replacement for the standard Rails layout template
!!! 5
%html
%head
= stylesheet_link_tag "reset", "base", "formtastic", "formtastic_changes", "application", :cache => "apprequest"
= javascript_include_tag :defaults
= csrf_meta_tag
%title= content_for(:title).empty? ? app_name : "#{ content_for(:title) } | #{ app_name }"
%body{ :class => content_for(:body_class) }
#wrap
#header
.wrapper
= render :partial => "layouts/application/header"
#main
.wrapper
= yield
#footer
.wrapper
= render :partial => "layouts/application/footer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment