!!!
%html{:dir => "ltr", :lang => "en-US", :xmlns => "http://www.w3.org/1999/xhtml"}
%head{:profile => "http://gmpg.org/xfn/11"}
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "content-type"}/
%meta{:content => "index,follow", :name => "robots"}/
= Caboodle::Site.meta
%title= @title || Caboodle::Site.title
%link{:href => "/stylesheets/screen.css", :rel => "stylesheet", :type => "text/css"}/
- Caboodle::Stylesheets.each do |css|
%link{:rel => "stylesheet", :rel => css, :type => "text/css"}
%link{:href => Caboodle::Site.url_base, :rel => "index", :title => Caboodle::Site.title}/
%script{:charset => "utf-8", :src => "http://ajax.googleapis.com/ajax/libs/jquery/#{Caboodle::Site.jquery_version || "1.4.2"}/jquery.min.js", :type => "text/javascript"}
%script{:charset => "utf-8", :src => "/js/application.js", :type => "text/javascript"}
- Caboodle::Javascripts.each do |js|
%script{:charset => "utf-8", :src => js, :type => "text/javascript"}
= Caboodle::Site.head
%body.caboodle.sinatra.ruby
= Caboodle::Site.before_page
#page.hfeed
= Caboodle::Site.before_header
%header#site-header
= Caboodle::Site.above_header
- if Caboodle::Site.logo_url
#logo
%a{:href => "/", :rel => "home", :title => Caboodle::Site.title }
%img{:src=>Caboodle::Site.logo_url, :width=>"64", :height=>"64"}
- if Caboodle::Site.title
#site-title
%h1
%a{:href => "/", :rel => "home", :title => Caboodle::Site.title }
= Caboodle::Site.title
- if Caboodle::Site.description
#site-description
%h2= Caboodle::Site.description
- if Caboodle::Site.has_access
#access
.skip-link
%a{:href => "#content", :title => "Skip navigation to the content"} Skip to content
- if Caboodle::MenuItems.size > 0
= Caboodle::Site.before_nav
%nav
%ul
%li
%a{:href=>"/"}
= Caboodle::Site.home_title
- Caboodle::MenuItems.each do |p|
%li
%a{:href=>p[:link]}
= p[:display]
= Caboodle::Site.below_header
= Caboodle::Site.after_header
= Caboodle::Site.before_main
%section#main
- if @title
%header#page_title
%h1
= @title
= Caboodle::Site.before_content
%section#content
= Caboodle::Site.above_content
= yield
= Caboodle::Site.below_content
= Caboodle::Site.after_content
= Caboodle::Site.after_main
= Caboodle::Site.before_footer
%footer#footer
= Caboodle::Site.above_footer
- if Caboodle::Site.has_footer
%p
\©
= Caboodle::Site.author
- if Caboodle::Site.has_caboodle_link
|
Powered by
%a{:href=>"http://github.com/steflewandowski/caboodle"}
Caboodle
= Caboodle::Site.below_footer
= Caboodle::Site.after_footer
= Caboodle::Site.after_page
= Caboodle::Site.after_body