Sha256: 7f30c2d3d3d1f794dd92d1c09f7bc10dfe756b7774dc6d962a7f2f67f4ec9136

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require "coffee-script"
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 "/js/application.js" do
      coffee :application
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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