Skip to content

Instantly share code, notes, and snippets.

@djpate
Created February 9, 2014 20:02
Show Gist options
  • Save djpate/8905093 to your computer and use it in GitHub Desktop.
Save djpate/8905093 to your computer and use it in GitHub Desktop.
%html
%head
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
%title= content_for?(:title) ? yield(:title) : "App_Name"
%meta{:content => content_for?(:description) ? yield(:description) : "App_Name", :name => "description"}
= stylesheet_link_tag :application, :media => "all"
= javascript_include_tag :application
= csrf_meta_tags
= yield(:head)
%body
%header.navbar.navbar-fixed-top.navbar-inverse
%nav.navbar-inner
.container
%a.brand{:href => "/"} Our First HTML5 haml example
#main{:role => "main"}
.container
.content
.row
.span12
= render 'layouts/messages'
= yield
%footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment