Sha256: 958acc27039fbb8feae0dce7357351c412bf9d2af2bdca7a69f8b3981aaa05d2

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 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"))
    set :sass, cache: false

    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

2 entries across 2 versions & 1 rubygems

Version Path
mado-0.0.4 lib/mado/app.rb
mado-0.0.3 lib/mado/app.rb