Sha256: f8b4d72e8b132dfbebb4e0981a64d2424e56063d013c543a2570dec16cc20cc2

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

require "sinatra"

module Almanack
  class Server < Sinatra::Base
    set :theme, 'legacy'
    set :root, Pathname(settings.root).join('themes', settings.theme)
    set :protection, except: :frame_options

    get "/" do
      @calendar = Almanack.calendar
      erb :events
    end

    get "/stylesheets/:name" do
      sass :"stylesheets/#{params[:name]}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
almanack-0.0.1.alpha3 lib/almanack/server.rb