Skip to content

Instantly share code, notes, and snippets.

@mrichman
Created April 14, 2009 02:16
Show Gist options
  • Save mrichman/94899 to your computer and use it in GitHub Desktop.
Save mrichman/94899 to your computer and use it in GitHub Desktop.
file 'app/views/layouts/master.html.haml', <<-TEMPLATE
!!! Strict
%html{:xmlns => 'http://www.w3.org/1999/xhtml', 'xml:lang' => 'en'}
%head
%meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=UFT-8'}
= stylesheet_link_tag :all, :cache => true
= javascript_include_tag :all, :cache => true
= title
%body
#wrapper
#header
- tabbed_menu do
- tab "Home", :root
#contents
- [:error, :warning, :notice, :message].each do |message|
- if flash[message]
%p.flash{:id => "flash_#{message}"}= flash[message] # INTERPRETER CHOKES ON #{message}
= yield
#footer
TEMPLATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment