Sha256: 21f7213dc2f2a500e433bca8b2f86b88c77451516ef1f126f8feed3ceb4e19ba
Contents?: true
Size: 375 Bytes
Versions: 9
Compression:
Stored size: 375 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'sinatra' require File.join(File.dirname(__FILE__), 'environment') configure do set :views, "#{File.dirname(__FILE__)}/views" end error do e = request.env['sinatra.error'] Kernel.puts e.backtrace.join("\n") 'Application error' end helpers do # add your helpers here end # root page get '/' do haml :root end
Version data entries
9 entries across 9 versions & 1 rubygems