Sha256: fb067beeb97b36df99552b2a6606d63d6bac5369c23ebbc8e1e32de4646f8a1a
Contents?: true
Size: 535 Bytes
Versions: 7
Compression:
Stored size: 535 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 get '/xss' do @xss_param = params['name'] @my_arr[0] = params['second'] haml :xss end # FIXME: I must raise an error here get '/foo' do haml :bar end
Version data entries
7 entries across 7 versions & 1 rubygems