Skip to content

Instantly share code, notes, and snippets.

@vongruenigen
Created July 21, 2011 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vongruenigen/1097135 to your computer and use it in GitHub Desktop.
Save vongruenigen/1097135 to your computer and use it in GitHub Desktop.
HAML layout file
!!!
%html
%head
%title
= yield(:title) || "#WorkBuffer"
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= stylesheet_link_tag "application"
= javascript_include_tag :defaults
= csrf_meta_tag
= yield(:head)
%body
#container
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}"
- if show_title?
%h1= yield(:title)
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment