Skip to content

Instantly share code, notes, and snippets.

@metamn
Created May 19, 2009 16:35
Show Gist options
  • Save metamn/114204 to your computer and use it in GitHub Desktop.
Save metamn/114204 to your computer and use it in GitHub Desktop.
HTML headers for HAML applications
!!!
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
%head
= stylesheet_link_tag 'screen.css', :media => 'screen, projection'
= stylesheet_link_tag 'print.css', :media => 'print'
/[if IE]
= stylesheet_link_tag 'ie.css', :media => 'screen, projection'
= stylesheet_link_tag 'application', :media => 'screen, projection'
%body.container
#header
= render :partial => "shared/header"
#content
= yield :content
#help
= yield :help
#footer
#flash
- [:notice, :error, :success].each do |key|
- unless flash[key].blank?
%p{ :class => "flash #{key}" }= flash[key]
= yield :footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment