Sha256: 0404a813abd6eb4ea6e91aec1000fbc07a70b47a3b372b8332d5cf885b2584b5

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

$:.unshift( "../lib" )
require 'capcode'
require 'capcode/render/haml'
require 'capcode/render/sass'
Capcode::Helpers.haml_path="haml"
Capcode::Helpers.sass_path="haml"

module Capcode
  class Index < Route '/'
    def get
      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

3 entries across 3 versions & 1 rubygems

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