Sha256: 368ebdced909f8cd33db5b365650afb22fed3665c8ec219ae20a71886833e310

Contents?: true

Size: 239 Bytes

Versions: 3

Compression:

Stored size: 239 Bytes

Contents

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

module Capcode
  class Index < Route '/'
    def get
      render :erb => :cf, :layout => :cf_layout
    end
  end  
end

Capcode.run( )

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
Capcode-0.8.6 examples/render-erb.rb
Capcode-0.8.5 examples/render-erb.rb
Capcode-0.8.4 examples/render-erb.rb