Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## app/views/layouts/application.html.haml !!! XML !!! %html{ :xmlns => "http://www.w3.org/1999/xhtml" } %head %meta{ "http-equiv" => "Content-Type", "content" => "text/html; charset=utf-8" } %title Web App = stylesheet_link_tag 'web_app_theme' = stylesheet_link_tag 'themes/default/style' = stylesheet_link_tag 'application' = javascript_include_tag :defaults %body #container #header %h1= link_to 'ESFilter', '' #user-navigation %ul %li= link_to 'Profile', '' %li= link_to 'Settings', '' %li= link_to 'Logout', '' .clear #main-navigation %ul %li.first.active= link_to 'Home', '' .clear #wrapper #main = yield #footer .block %p Copyright © 2009 Your Company #sidebar = yield :sidebar .clear ## app/views/some_controller/index.html.haml - content_for :sidebar do .block %h3 Simple Block .content %p The contents of the sidebar .block %h3 Menu %ul.navigation %li= link_to 'Home', '' %li= link_to 'Logout', '' .block.notice %h4 Notice %p Some notice here .block .sidebar-block %h4 Inner Block Title %p Some notice here .block .secondary-navigation %ul %li= link_to 'Welcome', '' .clear .content %h2 Main#index .inner %p Find me ... %hr %p Bye!
This paste will be private.
From the Design Piracy series on my blog: