Sha256: 9c876ab5dc2c26ecd4a1c566b78eab8c26a93616e361af99207ea8ef0cbfe82e

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

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

module Capcode
  set :static, "static"
  
  class Index < Route '/'
    def get
      render :markaby => :index
    end
  end
end

module Capcode::Views
  def index
    html do
      body do
        h1 "Hello World!"
        a "Show me static", :href => "/static-index.html"
      end
    end
  end
end

Capcode.run( )

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Capcode-0.9.9 examples/static.rb