<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/nested_layouts/isolation.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,12 +8,11 @@ module ActionView #:nodoc:
       # Wrap part of the template into layout.
       # All layout files must be in app/views/layouts.
       def inside_layout(layout, &amp;block)
+        layout = (layout.to_s =~ /layouts\//) ? layout : &quot;layouts/#{layout}&quot;
         binding = block.binding if BINDING_REQUIRED
-
-        layout = Dir.entries(&quot;#{RAILS_ROOT}/app/views/layouts&quot;).detect { |a| /#{layout}/.match(a) }
         @template.instance_variable_set('@content_for_layout', capture(&amp;block))
         concat(
-          @template.render(:file =&gt; &quot;#{RAILS_ROOT}/app/views/layouts/#{layout}&quot;, :user_full_path =&gt; true),
+          @template.render(:file =&gt; @template.view_paths.find_template(layout, :html), :user_full_path =&gt; true),
           binding
         )
       end</diff>
      <filename>lib/nested_layouts.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a75de05e0bf300c62ec3c42082bc944f11339b05</id>
    </parent>
    <parent>
      <id>5a5f6f1ea21b04aceab8d06919c25384896644f6</id>
    </parent>
  </parents>
  <author>
    <name>George Anderson</name>
    <email>george@benevolentcode.com</email>
  </author>
  <url>http://github.com/george/nested-layouts/commit/d4c5f4b19c9f373aa9c58570eb5ab9ca0adf0e54</url>
  <id>d4c5f4b19c9f373aa9c58570eb5ab9ca0adf0e54</id>
  <committed-date>2009-10-01T08:43:29-07:00</committed-date>
  <authored-date>2009-10-01T08:43:29-07:00</authored-date>
  <message>Merge commit 'caring/master' into development

* commit 'caring/master':
  Nested layout can use rails to find the layout, this is much more robust than filesystem detection in just one of the view paths.
  Don't require the layouts/ prefix when using inside_layout -- matches the behavior of rails layouts.
  Added isolated option to nested layouts to make it work for partial layouts.</message>
  <tree>25f3b318e042cfbffc0926cb5c48287b538a294e</tree>
  <committer>
    <name>George Anderson</name>
    <email>george@benevolentcode.com</email>
  </committer>
</commit>
