require 'rubygems' require 'capcode' $:.unshift( "../lib" ) require 'capcode/render/webdav' module Capcode # Render file from /Users/greg/temp !!! class WebDav < Route '/temp' def get render :webdav => "/Users/greg/temp" end def method_missing(id, *a, &b) get end end class Index < Route '/' def get render "WebDav server acces : #{URL(Capcode::WebDav)}" end end end Capcode.run( )