Skip to content

Instantly share code, notes, and snippets.

@dankozlowski
Created May 25, 2011 04:49
Show Gist options
  • Save dankozlowski/990351 to your computer and use it in GitHub Desktop.
Save dankozlowski/990351 to your computer and use it in GitHub Desktop.
!!! Strict
%html
%head
= render "shared/head"
//%link{ :href => "http://fonts.googleapis.com/css?family=Arvo", :rel => "stylesheet", :type => "text/css" }
//%meta{ :"http-equiv" => "Content-Type", :content => "text/html", :charset => "utf-8" }
%body
#container_inner
- if request.request_uri == "/"
#container_index{ :id => @body_id }
- else
#container{ :id => @body_id }
= render "shared/header"
- if flash[:notice].present? || flash[:error].present?
#notice
%h1= flash[:notice] if flash[:notice].present?
%h1= flash[:error] if flash[:error].present?
= yield
= render "shared/footer"
@utkarshkukreti
Copy link

Here are some ways to do this https://gist.github.com/987308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment