Sha256: dc5382364f1bd109092d82a404472ceda3a51dead642254b0cb767103839090a

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

module Terminus
  class Application < Sinatra::Base
    
    ROOT = File.expand_path(File.dirname(__FILE__) + '/../')
    
    set :static, true
    set :public, ROOT + '/public'
    set :views,  ROOT + '/views'
    
    helpers do
      def host
        "http://#{ env['HTTP_HOST'] }"
      end
      
      def bookmarklet
        Packr.pack(erb(:bookmarklet), :shrink_vars => true)
      end
    end
    
    get('/') { erb :index }
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terminus-0.1.0 lib/terminus/application.rb