<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,24 @@ Configuration
 Use Sinatra's &quot;set&quot; option
 --------------------------
 
+Configure blocks are not executed in the event context, and don't have access
+to the same instance variables. To store a piece of information that you want
+to access in your routes, use `set`.
+
+    configure :development do
+      set :dbname, 'devdb'
+    end
+
+    configure :production do
+      set :dbname, 'productiondb'
+    end
+
+...
+
+    get '/whatdb' do
+      'We are using the database named ' + options.dbname
+    end
+
 
 External config file via the configure block
 --------------------------------------------</diff>
      <filename>book/Configuration.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>01aafb08c3c80895127efbdf6ee853b0a89f8a33</id>
    </parent>
  </parents>
  <author>
    <name>Neal Lindsay</name>
    <email>neal.lindsay@gmail.com</email>
  </author>
  <url>http://github.com/cschneid/sinatra-book/commit/ccbcd5edbc2a51244a9d10946eac8505ed2ef769</url>
  <id>ccbcd5edbc2a51244a9d10946eac8505ed2ef769</id>
  <committed-date>2009-01-14T15:24:09-08:00</committed-date>
  <authored-date>2009-01-13T05:46:20-08:00</authored-date>
  <message>basic configuration example

Signed-off-by: Chris Schneider &lt;chris@christopher-schneider.com&gt;</message>
  <tree>dd73395f6bec79ba16a9b2fa33a2390cf497049e</tree>
  <committer>
    <name>Chris Schneider</name>
    <email>chris@christopher-schneider.com</email>
  </committer>
</commit>
