<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/public/abstract_controller/controllers/views/helpers/capture_with_args/index.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -60,9 +60,15 @@ module Merb
       def run
         subklasses = subclasses.dup
         until subclasses.empty?
+          time = Time.now.to_i
           bootloader = subclasses.shift
-          Merb.logger.debug!(&quot;Loading: #{bootloader}&quot;) if ENV['DEBUG']
+          if ENV['DEBUG'] &amp;&amp; Merb.logger
+            Merb.logger.debug!(&quot;Loading: #{bootloader}&quot;)
+          end
           Object.full_const_get(bootloader).run
+          if ENV['DEBUG'] &amp;&amp; Merb.logger
+            Merb.logger.debug!(&quot;It took: #{Time.now.to_i - time}&quot;)
+          end
           self.finished &lt;&lt; bootloader
         end
         self.subclasses = subklasses</diff>
      <filename>lib/merb-core/bootloader.rb</filename>
    </modified>
    <modified>
      <diff>@@ -159,6 +159,7 @@ module Merb::Template
       template = ::Erubis::BlockAwareEruby.new(io.read)
 
       _old_verbose, $VERBOSE = $VERBOSE, nil
+      Merb.logger.fatal template.src
       template.def_method(mod, name, File.expand_path(io.path))
       $VERBOSE = _old_verbose
       
@@ -182,7 +183,7 @@ module Merb::Template
       #   &lt;% end %&gt;
       def capture_erb(*args, &amp;block)
         _old_buf, @_erb_buf = @_erb_buf, &quot;&quot;
-        block.call
+        block.call(*args)
         ret = @_erb_buf
         @_erb_buf = _old_buf
         ret</diff>
      <filename>lib/merb-core/controller/template.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,9 @@ module Merb::Test::Fixtures
     
     class Capture &lt; HelperTesting
     end
+
+    class CaptureWithArgs &lt; HelperTesting
+    end
     
     class CaptureEq &lt; HelperTesting
       def helper_using_capture(&amp;blk)</diff>
      <filename>spec/public/abstract_controller/controllers/helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,10 @@ describe Merb::AbstractController, &quot; with capture and concat&quot; do
     dispatch_should_make_body(&quot;Capture&quot;, &quot;Capture&quot;)    
   end
 
+  it &quot;should support capture with arguments&quot; do
+    dispatch_should_make_body(&quot;CaptureWithArgs&quot;, &quot;Capture: one, two&quot;)
+  end  
+
   it &quot;should support basic helpers that use capture with &lt;%=&quot; do
     dispatch_should_make_body(&quot;CaptureEq&quot;, &quot;Pre. Beginning... Capturing... Done. Post.&quot;)
   end</diff>
      <filename>spec/public/abstract_controller/helper_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c019974cb103ca21722fe18c12872c50669a2ea3</id>
    </parent>
  </parents>
  <author>
    <name>Yehuda Katz</name>
    <email>wycats@yehuda-katzs-macbook-pro.local</email>
  </author>
  <url>http://github.com/wycats/merb-core/commit/509851b02f2bcb7936f3a122b499e69253280ce5</url>
  <id>509851b02f2bcb7936f3a122b499e69253280ce5</id>
  <committed-date>2008-07-19T19:44:00-07:00</committed-date>
  <authored-date>2008-07-19T19:44:00-07:00</authored-date>
  <message>Add support for argument capture and fix $DEBUG bootloader stuff [#390 state:resolved]</message>
  <tree>b39ac3003c130aacf1eab8fa38d585fdc3f01e84</tree>
  <committer>
    <name>Yehuda Katz</name>
    <email>wycats@yehuda-katzs-macbook-pro.local</email>
  </committer>
</commit>
