Sha256: 9ebe6a16535a712e22a81a9ff2842baf7444dba15367771804ab8f140be2a351

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

$:.unshift( "../lib" )
require 'capcode'
require 'capcode/render/webdav'

module Capcode
  
  # Render file from /Users/greg/temp !!!
  class WebDav < Route '/temp'
    def get
      render :webdav => "/Users/greg"
    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

5 entries across 5 versions & 1 rubygems

Version Path
Capcode-0.8.9 examples/render-webdav.rb
Capcode-0.8.8 examples/render-webdav.rb
Capcode-0.8.7 examples/render-webdav.rb
Capcode-0.8.6 examples/render-webdav.rb
Capcode-0.8.5 examples/render-webdav.rb