Sha256: 3bb51ab3bca2b82d4bd4fd886cc5ebd4a7b0c5e4bed4702a2887f9b2586113cb

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

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

module Capcode
  set :static, "static"
  set :verbose, true
  
  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( )

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capcode-render-static-0.4.0 examples/render-static.rb
capcode-render-static-0.3.0 examples/render-static.rb
capcode-render-static-0.2.0 examples/render-static.rb
capcode-render-static-0.1.0 examples/render-static.rb