Sha256: 6a657691a4a83b2e599ebef9cdf629e37c6ba624988d19ddf0f79093576d6598

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

!!! xml
!!! strict
%html{html_attrs("en-GB")}
  %head
    %meta{"http-equiv" => 'Content-Type', :content => 'text/html;charset=utf-8'}
    
    %title= h( "<%= app_title %> | " + (yield(:title) || "Untitled"))
    
    =stylesheet_link_tag ["screen"], :media => "screen"
    =stylesheet_link_tag ["print"], :media => "print"
    =stylesheet_link_tag ["handheld"], :media => "handheld"
 
    /[if lt IE 6]
      = stylesheet_link_tag ["ie"], :media => "screen"
    
    = yield(:head)
    
  %body
    #doc
      #hd
        = render :partial => "shared/header"
      
      #bd
        = yield(:content) || yield
      
      #ft
        = render :partial => "shared/footer"
      
    = render :partial => "shared/analytics"


    - unless yield(:javascript).nil?

      - if protect_against_forgery?
        :javascript
          var AUTH_TOKEN = encodeURIComponent(#{form_authenticity_token.inspect})

      = javascript_include_tag 'jquery-1.3.2.min', 'jquery-iu-1.7.2.min.js'

      = yield(:javascript_includes)

      = javascript_include_tag 'application'

      :javascript
        #{yield(:javascript)}

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
PeterCoulton-rotten-generators-0.7.12 rails_generators/rotten_layout/templates/layout.html.haml
rotten-generators-0.9.0 rails_generators/rotten_layout/templates/layout.html.haml
rotten-generators-0.9.2 rails_generators/rotten_layout/templates/layout.html.haml
rotten-rotten-generators-0.7.12 rails_generators/rotten_layout/templates/layout.html.haml