Sha256: 5c3bcb7ce54f3699381dc81b83087472063bf6a1599de8d30523494af5f983e3

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

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

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

1 entries across 1 versions & 1 rubygems

Version Path
capcode-render-sass-0.1.0 examples/render-haml_sass.rb