class Whitelist < MouseHole::App
  title "whitelist" 
  namespace "purzelbaumcorp.de" 
  description "fend off the time thieves!" 
  version "0.15" 

  %w{mail.google.com corelib.rubyonrails.org blog.purzelbaumcorp.de}.
    each do |site|
    - url("http://#{site}/*")
  end

  + url("http://*")

  # the pages flow through here
  def rewrite(page)
    page.html do
      body do
        div :style => 'text-align: center; margin-top: 40px;' do
          img :src => 'http://www.doyouremember.co.uk/images/mr-t.gif'
          div "Pity the fool!", :style => 'font-size:27pt; color:#aaa;'
        end
      end
    end
  end
end
