Created
May 19, 2009 16:35
-
-
Save metamn/114204 to your computer and use it in GitHub Desktop.
HTML headers for HAML applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%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