Sha256: 339976fca8fea094935be651d3a0ffee4b2e4fba028fd511a516b70554fedd54

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

require "sinatra"

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
almanack-0.0.1.alpha2 lib/almanack/server.rb
almanack-0.0.1.alpha1 lib/almanack/server.rb