Sha256: cf041febd0922dd4b016202f94afa2df63534f12576afc5e4826a0ab513d3266

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

$:.unshift( "../lib" )
require 'capcode'
require 'capcode/render/erb'
#Capcode::Helpers.erb_path="erb"

module Capcode
  set :erb, "erb"
  
  class Index < Route '/'
    def get
      @time = Time.now
      render :erb => :cf, :layout => :cf_layout
    end
  end  
end

Capcode.run( )

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Capcode-0.8.7 examples/render-erb.rb