Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
def to_html # endpoint doesn't matter here so set to something bogus # to prevent TM from asking for one... @endpoint = 'x' _format = ENV['TM_SCOPE'] _doc = "#{post['description']}" _doc += "#{post['mt_text_more']}" if post['mt_text_more'] _base = %Q{<base href="#{headers['Link']}" />} if headers['Link'] print <<-HTML <html><head><title>#{post['title']}</title> #{_base} <style type="text/css"> body { background-color: #eee; } body > h1 { font-size: large; } .contents { background: white; font-family: Georgia, serif; font-size: 13px; border: 1px #888 solid; padding: 0 1em; } </style> </head> <body> <h1>#{post['title']}</h1> <div class="contents"> HTML
From the Design Piracy series on my blog: