title: Make Sinatra Helpers Available in Modules everywhere?
body: <p>How can I make my Sinatra helpers available everywhere? </p>
  
  <p>Sometimes I can't access them (e.g. from modules, see below). I'd like them to be tied to the 'global namespace' s.t. they can be invoked by their name, from anywhere.</p>
  
  <p>Below is a working Sinatra app demonstrating the problem. </p>
  
  <pre><code>require 'sinatra'
  
  helpers do
    def bar
      "bar"
    end
  end
  
  get '/helper' do
    bar #works 
  end
  
  get '/module_and_helper' do 
    Foo.foo #crashes. How can I fix this?
  end
  
  module Foo
    extend self
  
    def foo
      bar
    end
  end
  </code></pre>
  
  <p>Thanks! </p>