Sha256: 4e88564dfc4dd865b7ba274516a26a3275d106bf6c755d34a62343a6bc99c480
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
module Polygon class Base < Sinatra::Base configure do set :public_folder, Proc.new { 'content/static' } set :views, Proc.new { 'design/views' } set :doc_folder, Proc.new { 'content/dynamic' } set :wlang, :layout => :"layouts/html5" enable :logging enable :raise_errors disable :show_exceptions end not_found do send_file settings.public_folder + '/404.html', :status => 404 end error do send_file settings.public_folder + '/500.html', :status => 500 end helpers Polygon::Helpers end # Base end # module Polygon
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polygon-0.10.1 | lib/polygon/base.rb |
polygon-0.10.0 | lib/polygon/base.rb |