Skip to content

Instantly share code, notes, and snippets.

# see http://coderack.org/users/dira/middlewares/76-haml-sass-for-static-sites
app = Rack::Builder.new do
use Rack::SiteGenerator#, :generators => { :html => :erb, :css => :less }, :source_path => "views/others"
run Rack::StaticApp.new
end
Rack::Handler::Mongrel.run app, :Port => 9292