Sha256: c33bdcf09bbbe1fcf57796f430973b12088b35dee7ea117a9678cdcdd3284521
Contents?: true
Size: 363 Bytes
Versions: 3
Compression:
Stored size: 363 Bytes
Contents
$:.unshift( "../lib" ) require 'capcode' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Capcode-0.8.9 | examples/render-static.rb |
Capcode-0.8.8 | examples/render-static.rb |
Capcode-0.8.7 | examples/render-static.rb |