sinatra/sinatra-contrib — pull request #54 by kamui (2012-06-12 21:29:26+00:00)
Title: Render the config file with ERB before loading with YAML

I often use Heroku with my apps and Heroku makes heavy use of environment variables to set things like database url, redis url, etc. I usually render the config file in ERB and then load that from YAML config file. This way I can set config options for development and testing environments and also set which environment variable is read in production or staging.

I patched `sinatra-contrib` with this functionality in case others might find it useful.