class Sinatra::Base

def route_eval

Run a route block and throw :halt with the result.
def route_eval
  throw :halt, yield
end