require 'rubygems' require 'atchoum' class Layout < Atchoum::Website def layout html do body do self << yield end end end def index_page h1 'Got layout ?' end end