chriseppstein/compass

View on GitHub
compass-style.org/layouts/basic.haml

Summary

Maintainability
Test Coverage
!!!5
- # This template is just the stuff until the body tag.
%html.no-js{:dir => "ltr", :lang => "en"}
  %head
    %meta{:charset => "utf-8"}/
    %meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"}
    %meta(name="viewport" content="width=780")
    - if ENV["BETA"]
      %meta(name="robots" content="noindex")
    %link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png")
    %link{:href=>"/blog/atom.xml", :rel=>"alternate", :title=>"Compass Blog", :type=>"application/atom+xml"}
    %title
      #{@item[:title]} | Compass Documentation
    %link{:charset => "utf-8", :href => "/stylesheets/screen.css", :rel => "stylesheet", :type => "text/css"}
    = render "partials/js-core"
    = render "partials/js-highlighter"
    /[if lte IE 8]
      %link{:charset => "utf-8", :href => "/stylesheets/ie.css", :rel => "stylesheet", :type => "text/css"}
    - if content_for(@item, :additional_css)
      %style(type="text/css")= content_for(@item, :additional_css)
  %body{body_attributes(@item)}= yield