require 'rubygems' require 'capcode' require 'capcode/render/sass' $:.unshift( "../lib" ) require 'capcode/render/haml' module Capcode set :haml, "haml" #, { :format => :html4 } set :sass, "haml" class Index < Route '/' def get @time = Time.now render :haml => :cf, :layout => :cf_layout end end class CSS < Route '/style.css' def get render :sass => :style end end end Capcode.run( )