Sha256: 017decd2954c5750ad293156350457fc80a88c8f132fbf7e898a01604c7a4175

Contents?: true

Size: 872 Bytes

Versions: 7

Compression:

Stored size: 872 Bytes

Contents

module Caboodle
  class App < Sinatra::Base
    register Sinatra::Compass
      
    set :app_file, __FILE__
    set :logging, true
    set :root, File.expand_path(".")
    set :views, Proc.new { File.join(root, "views") }
    set :public, Proc.new { File.join(root, "public") }
    #disable :run, :reload
    # set :compass, :sass_dir => File.join(root, "stylesheets")
    #   
    # get_compass("/css/:name.css") do
    #   compass :one_stylesheet
    # end
    
    helpers Sinatra::CaboodleHelpers
  
    configure do
      config_path = File.expand_path(File.join(root,"config","site.yml"))
      if File.exists?(config_path)
        Caboodle::Kit.load_config(config_path)
        Caboodle::Kit.setup
      end      
    end
    # get '/:kit/stylesheet.css' do
    #   header 'Content-Type' => 'text/css; charset=utf-8'
    #   sass :stylesheet
    # end
  
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
caboodle-0.2.1 lib/caboodle/app.rb
caboodle-0.2.0 lib/caboodle/app.rb
caboodle-0.1.9 lib/caboodle/app.rb
caboodle-0.1.8 lib/caboodle/app.rb
caboodle-0.1.7 lib/caboodle/app.rb
caboodle-0.1.6 lib/caboodle/app.rb
caboodle-0.1.5 lib/caboodle/app.rb