Sha256: c218c4503a60419c86d1b2a560d54e0d05622359a4df88be45d7b3b57d03265f

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

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

module Capcode
  set :haml, "haml" #, { :format => :html4 }
  set :sass, "haml"
  
  class Index < Route '/'
    def get
      @time = Time.now
      render :haml => :cf, :layout => :cf_layout
    end
  end
  
  class CSS < Route '/style.css'
    def get
      render :sass => :style
    end
  end
end

Capcode.run( )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capcode-render-haml-0.2.0 examples/render-haml_sass.rb
capcode-render-haml-0.1.0 examples/render-haml_sass.rb