Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.482 kb
module Kernel
%w( get post put delete ).each do |verb|
eval <<-end_eval
def #{verb}(path, &block)
Sinatra::Event.new(:#{verb}, path, &block)
end
end_eval
end
def after_attend(filter_name = nil, &block)
Sinatra::Event.after_attend(filter_name, &block)
end
def helpers(&block)
Sinatra::EventContext.class_eval &block
end
def static(path, root)
Sinatra::StaticEvent.new(path, File.join(File.dirname($0) + root))
end
end
Jump to Line
Something went wrong with that request. Please try again.