title: Can I do something like this in sinatra app? config files based on request
body: <p>for the following code i'm getting config_file method is not available for the request. How can I do something like setting config file for entire app based on the request.</p>
  
  <pre><code> namespace '/:id' do 
     before do
       if params[:id] == 'something'
         config_file 'configfile1.yml'
       else
         config_file 'configfile2.yml'
       end
     end 
   end
  </code></pre>