<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app_generators/flat/flat_generator.rb</filename>
    </added>
    <added>
      <filename>app_generators/flat/templates/README</filename>
    </added>
    <added>
      <filename>app_generators/flat/templates/app.rb</filename>
    </added>
    <added>
      <filename>app_generators/flat/templates/rack.ru</filename>
    </added>
    <added>
      <filename>app_generators/full/full_generator.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/README</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/Rakefile</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/app.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/config/boot.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/config/env.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/config/env/development.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/config/env/production.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/config/env/test.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/config/rack.ru</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/gitignore</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/public/stylesheets/ie.css</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/public/stylesheets/print.css</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/public/stylesheets/screen.css</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/spec/app_spec.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/spec/spec_helper.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/test/app_test.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/test/test_helper.rb</filename>
    </added>
    <added>
      <filename>app_generators/full/templates/views/layout.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,4 +8,11 @@ source = RubiGen::PathSource.new(:application,
   File.join(File.dirname(__FILE__), &quot;../app_generators&quot;))
 RubiGen::Base.reset_sources
 RubiGen::Base.append_sources source
-RubiGen::Scripts::Generate.new.run(ARGV, :generator =&gt; 'invisible')
+
+if ARGV.delete(&quot;--flat&quot;)
+  generator = &quot;flat&quot;
+else
+  generator = &quot;full&quot;
+end
+
+RubiGen::Scripts::Generate.new.run(ARGV, :generator =&gt; generator)</diff>
      <filename>bin/invisible</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require &quot;invisible/erb&quot;
 # require &quot;invisible/erubis&quot; Remove previous if you uncomment this
 # require &quot;invisible/haml&quot;
 
-load &quot;config/env/#{RACK_ENV}&quot;
+load &quot;config/env/#{RACK_ENV}&quot;, :reload =&gt; false
 
 # If you want to split your app in several files,
 # load all the files here.</diff>
      <filename>example/config/env.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,5 +2,5 @@ require File.dirname(__FILE__) + &quot;/boot&quot;
 
 Invisible.run do
   root File.dirname(__FILE__) + &quot;/..&quot;
-  load &quot;config/env&quot;
+  load &quot;config/env&quot;, :reload =&gt; false
 end</diff>
      <filename>example/config/rack.ru</filename>
    </modified>
    <modified>
      <diff>@@ -155,9 +155,12 @@ class Invisible
   # which means you can use the get,post,with methods.
   # The files loaded with this method will be reloaded in
   # You're using the Invisible Reloader middleware.
-  def load(file)
+  # Options:
+  # reload: false to not reload the file when Reloader middleware is in use.
+  #         (default: true)
+  def load(file, options={})
     return if @loaded.include?(file)
-    @loaded &lt;&lt; file
+    @loaded &lt;&lt; file unless FalseClass === options[:reload]
     path = File.join(@root, file) + &quot;.rb&quot;
     eval(File.read(path), binding, path)
   end</diff>
      <filename>lib/invisible.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,6 @@ class Invisible
     loaded = @loaded.uniq
     @loaded = []
     [@actions, @with, @layouts, @views].each { |c| c.clear }
-    @app = method(:_call)
     loaded.each { |f| load(f) }
   end
   </diff>
      <filename>lib/invisible/reloader.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app_generators/invisible/invisible_generator.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/README</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/Rakefile</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/app.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/config/boot.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/config/env.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/config/env/development.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/config/env/production.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/config/env/test.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/config/rack.ru</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/gitignore</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/public/stylesheets/ie.css</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/public/stylesheets/print.css</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/public/stylesheets/screen.css</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/spec/app_spec.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/spec/spec_helper.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/test/app_test.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/test/test_helper.rb</filename>
    </removed>
    <removed>
      <filename>app_generators/invisible/templates/views/layout.erb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>6ff4547f612ee0079aed8232c2e7bd2e2723e2c3</id>
    </parent>
  </parents>
  <author>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </author>
  <url>http://github.com/macournoyer/invisible/commit/f6a819c4c6446ac5ad5091ed3603622c95e73ccc</url>
  <id>f6a819c4c6446ac5ad5091ed3603622c95e73ccc</id>
  <committed-date>2008-11-11T20:24:20-08:00</committed-date>
  <authored-date>2008-11-11T20:24:20-08:00</authored-date>
  <message>Add a flat app generator.
Fix reloader.</message>
  <tree>9c2bc62df82e6ae46a89c4ed72cbd0de81aa03db</tree>
  <committer>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </committer>
</commit>
