Sha256: 93eeabe595ea663b94541f2de1c2ce85ad5f64f9e76cb02eac5d5bd7d1983d82

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

require "coffee-script"
require "sass"
require "sinatra/base"
require "slim"

module Mado
  class App < Sinatra::Base
    set :root, File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "app"))

    configure :development do
      require "sinatra/reloader"
      register Sinatra::Reloader
    end

    get '/' do
      slim :index
    end

    get "/css/application.css" do
      sass :application
    end

    get "/js/application.js" do
      coffee :application
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mado-0.0.2 lib/mado/app.rb