require 'rubygems' require 'atchoum' class AtchoumWebsite < Atchoum::Website def layout html do head do title 'Atchoum - Static website framework' style :type => 'text/css' do%Q( body {margin:0; padding:0; font: 10px Tahoma; text-align: center} ul#menu {padding: 4px; background: #111; list-style: none} ul#menu li {margin:0; display: inline} ul#menu li a {color: #fff; text-decoration: none; padding: 6px} ul#menu li a:hover {text-decoration: underline} img {border:0} )end end body do self << yield end end end def index_page ul.menu! do li { a 'code', :href => 'http://code.macournoyer.com/svn/atchoum/trunk' } li { a 'doc', :href => 'rdoc' } li { a 'samples', :href => 'http://code.macournoyer.com/svn/atchoum/trunk/examples' } end a(:href => 'sneezy_web/') do img.code! :src => 'code.gif', :alt => 'code' end end end