Sha256: bac5be7bf4287f29f8921596499e3c54b9c704434c3fd637558f338569c1fcd1
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 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 puts __FILE__ ## WARNING : when using rackup, :root default is the rackup directory (eg. /usr/bin or something like that) ! run Capcode.application( :static => "static", :verbose => true, :root => File.expand_path(File.dirname(__FILE__)) )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
Capcode-0.8.6 | examples/render-static.ru |
Capcode-0.8.5 | examples/render-static.ru |