Skip to content

Instantly share code, notes, and snippets.

@djpate
Created February 9, 2014 20:02
Show Gist options
  • Select an option

  • Save djpate/8905093 to your computer and use it in GitHub Desktop.

Select an option

Save djpate/8905093 to your computer and use it in GitHub Desktop.

Revisions

  1. Christophe Verbinnen created this gist Feb 9, 2014.
    22 changes: 22 additions & 0 deletions gistfile1.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    %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