Sha256: 3a85b80ef495dff794145932e9872ad368e89e00d78776046a9a64c3149af932
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 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 ## 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Capcode-0.8.9 | examples/render-static.ru |
Capcode-0.8.8 | examples/render-static.ru |
Capcode-0.8.7 | examples/render-static.ru |