Sha256: 790299bd72b7659ae93c0514076dbd8f9fd44aab4aa325f499c72f050fcaf900
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
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 : <a href='#{URL(Capcode::WebDav)}'>#{URL(Capcode::WebDav)}</a>" end end end Capcode.run( )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-webdav-0.2.0 | examples/render-webdav.rb |
capcode-render-webdav-0.1.0 | examples/render-webdav.rb |