Sha256: af70e965b9c5979b71a8ba9b9be6caa69eb1f7f4f9a0558a390de2ac545bf15d

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

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

module Capcode
  class Index < Route '/'
    def get
      render :static => "index.html"
    end
  end  
  class Path < Route '/path'
    def get
      render :static => "index.html", :exact_path => false
    end
  end  
end

Capcode.run( :static => "static", :verbose => true )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Capcode-0.8.6 examples/render-static.rb
Capcode-0.8.5 examples/render-static.rb