Sha256: 67badff56559af917713516e2f234bb44823cca12a15e0ed369c2a4b48f5e371

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

!!! 5
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
-ie_html :class => 'no-js', :lang => 'en' do

  %head
    -#
      to specify a stylesheet other than application, send a local variable to the head partial, eg:
      :locals => {:stylesheet => "name_of_stylesheet"}
    = render :partial => "layouts/boilerplate/head", :locals => {:stylesheet => "boilerplate"}

  %body{ :class => "#{controller.controller_name} #{controller.action_name}" }
    #container
      %header#header
        = render "layouts/boilerplate/header"

      #main{ :role => "main" }
        = render "layouts/boilerplate/flashes"
        = yield

      %footer#footer
        = render "layouts/boilerplate/footer"

    -# include various Javascript goodness at the bottom of the page for faster page loading
    -#
      to specify a stylesheet other than application, send a local variable to the javascripts partial, eg:
      :locals => {:javascripts => "name_of_javascript"}
    = render :partial => "layouts/boilerplate/javascripts", :locals => {:stylesheet => "boilerplate"}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
head_start-0.1.7 templates/boilerplate/layouts/boilerplate.html.haml
head_start-0.1.6 templates/boilerplate/layouts/boilerplate.html.haml
head_start-0.1.5 templates/boilerplate/layouts/boilerplate.html.haml
head_start-0.1.4 templates/boilerplate/layouts/boilerplate.html.haml
head_start-0.1.3 templates/boilerplate/layouts/boilerplate.html.haml
head_start-0.1.2 templates/boilerplate/layouts/boilerplate.html.haml